vscode快捷键:
1、上下移动一行: Alt+Up 或 Alt+Down
2、向上向下复制一行: Shift+Alt+Up 或 Shift+Alt+Down
3、代码行缩进 Ctrl+[ 、 Ctrl+]
4、在当前行下边插入一行 Ctrl+Enter
5、在当前行上方插入一行 Ctrl+Shift+Enter
6、选择从光标到行尾: Shift+End
7、选择从行首到光标处: Shift+Home
8、删除光标右侧的所有字: Ctrl+Delete
9、Alt+鼠标左键,可以选择自定义多行
vscode配置文件:
{
"workbench.colorTheme": "Monokai",
"editor.wordWrap": "on",
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
// 保存时自动格式化
"editor.tabSize": 2,
"eslint.enable": true,
"eslint.run": "onSave",
"eslint.autoFixOnSave": true,
"eslint.validate": [
{
"language": "vue",
"autoFix": true
},
{
"language": "html",
"autoFix": true
},
{
"language": "javascript",
"autoFix": true
}
],
"files.autoSave": "off",
"terminal.integrated.rendererType": "dom",
"javascript.updateImportsOnFileMove.enabled": "always",
"workbench.statusBar.feedback.visible": false,
"editor.minimap.enabled": true,
"workbench.statusBar.visible": true,
"workbench.activityBar.visible": true,
"window.zoomLevel": 0,
"workbench.startupEditor": "newUntitledFile",
"git.enableSmartCommit": true,
"git.confirmSync": false,
}