code .
代码重构
打开命令面板快捷键: shift + ctrl + p
多行编辑和自定义快捷键
常用快捷键:
- 复制光标所在行:
ctrl + c
- 替换文本:
ctrl + h
- 光标所在行的上方插入一行:
shift + ctrl + enter
- 光标所在行的下方插入一行:
ctrl + enter
- 文件夹内查找:
shift + ctrl + f
- 文档格式化:
shift + alt + f
- 切换终端面板:
ctrl + `
- 关闭当前文件:
ctrl + w
Keyboard shortcuts for Windows
settings.json:
{
"editor.formatOnSave":true,
"editor.minimap.enabled":true,
"editor.linkedEditing": true,
"files.insertFinalNewline": true
{
配置文件(launch.json):
{
"configurations": [
{
"name": "Launch Program",
"program": "${workspaceFolder}/app.js",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
}
]
}
智能感知、代码片段和Emmet语法
{
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1')",
"$2"
],
"description": "Log output to console"
}
}