Appearance
window
杂记
ctrl + p 打开最近的文件
自己定义的
search.action.revealInSideBar alt+cmd(ctrl)+n //定位文件位置代码块
快捷输入 cls 创建 首选项-》键入代码块 -》全局配置 -》 起javascript.json
json
{
// Place your 全局 snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
"Print to console": {
"scope": "javascript,typescript",
"prefix": "cls",
"body": [
"console.log($1)",
"$2"
],
"description": "Log output to console"
}
}注释
a)单行注释:【ctrl+/】
b)取消单行注释:【ctrl+/,ctrl+u】(按下ctrl不放,再按/或u)
c)块注释:【Alt + Shift + A】行操作
复制当前行:shift+alt+↑/↓
shift+alt+↑ 焦点在上一行
shift+alt+↓ 焦点在下一行
删除当前行:ctrl+shift+k
移动当前行:alt+↑/↓
alt+↑ 上移
alt+↓ 下移
快速选择当前行:ctrl+L
在上面插入行:ctrl+shift+enter
在下面插入行:ctrl+enter缩进
行增加缩进:ctrl+[
行减少缩进:ctrl+]
对于多行也适用。同时多行操作
添加多个光标:ctrl+alt+↑/↓
选择某个区块:alt+shift+拖动鼠标(也可以添加多个光标)代码
代码格式化:shift+alt+f
控制台终端显示与隐藏:crtl+~
新建一个窗口(再打开一个vscode):shift+ctrl+n
自动生成列表:ul>li*数字