F1
或 Ctrl+Shift+P
: 打开命令面板。在打开的输入框内,能够输入任何命令,例如:javascript
Backspace
会进入到 Ctrl+P
模式Ctrl+P
下输入 >
能够进入 Ctrl+Shift+P
模式在 Ctrl+P
窗口下还能够:html
?
列出当前可执行的动做!
显示 Errors
或 Warnings
,也能够 Ctrl+Shift+M
:
跳转到行数,也能够 Ctrl+G
直接进入@
跳转到 symbol
(搜索变量或者函数),也能够 Ctrl+Shift+O
直接进入@
根据分类跳转 symbol
,查找属性或函数,也能够 Ctrl+Shift+O
后输入:进入#
根据名字查找 symbol
,也能够 Ctrl+T
Ctrl+Shift+N
Ctrl+Shift+W
Ctrl+N
Ctrl+Tab
3
个) Ctrl+\
,也能够按住 Ctrl
鼠标点击 Explorer
里的文件名3
个编辑器的快捷键 Ctrl+1
Ctrl+2
Ctrl+3
3
个编辑器之间循环切换 Ctrl+
Ctrl+k
而后按 Left
或 Right
Ctrl+[
、 Ctrl+]
Ctrl+C
、 Ctrl+V
复制或剪切当前行/当前选中内容Shift+Alt+F
,或 Ctrl+Shift+P
后输入 format code
Alt+Up
或 Alt+Down
Shift+Alt+Up
或 Shift+Alt+Down
Ctrl+Enter
Ctrl+Shift+Enter
Home
End
Ctrl+End
Ctrl+Home
F12
Alt+F12
Ctrl+Shift+]
Shift+End
Shift+Home
Ctrl+Delete
Shift+Alt+Left
和 Shift+Alt+Right
Alt+Shift+鼠标左键
,Ctrl+Alt+Down/Up
Ctrl+Shift+L
Ctrl+D
下一个匹配的也被选中 (在 sublime 中是删除当前行,后面自定义快键键中,设置与 Ctrl+Shift+K
互换了)Ctrl+U
Shift+F12
Ctrl+F12
F2
,输入新的名字,回车,会发现全部的文件都修改了Error
或 Warning
:当有多个错误时能够按 F8
逐个跳转diff
: 在 explorer
里选择文件右键 Set file to compare
,而后须要对比的文件上右键选择 Compare with file_name_you_chose
Ctrl+F
Ctrl+H
Ctrl+Shift+F
F11
Ctrl +/-
Ctrl+B
Ctrl+Shift+E
Ctrl+Shift+F
Ctrl+Shift+G
Ctrl+Shift+D
Ctrl+Shift+U
File -> AutoSave
,或者 Ctrl+Shift+P
,输入 auto
打开默认键盘快捷方式设置:
File -> Preferences -> Keyboard Shortcuts
,或者:Alt+F -> p -> k
前端
修改 keybindings.json
:vue
// Place your key bindings in this file to overwrite the defaults [ // ctrl+space 被切换输入法快捷键占用 { "key": "ctrl+alt+space", "command": "editor.action.triggerSuggest", "when": "editorTextFocus" }, // ctrl+d 删除一行 { "key": "ctrl+d", "command": "editor.action.deleteLines", "when": "editorTextFocus" }, // 与删除一行的快捷键互换 { "key": "ctrl+shift+k", "command": "editor.action.addSelectionToNextFindMatch", "when": "editorFocus" }, // ctrl+shift+/多行注释 { "key":"ctrl+shift+/", "command": "editor.action.blockComment", "when": "editorTextFocus" }, // 定制与 sublime 相同的大小写转换快捷键,需安装 TextTransform 插件 { "key": "ctrl+k ctrl+u", "command": "uppercase", "when": "editorTextFocus" }, { "key": "ctrl+k ctrl+l", "command": "lowercase", "when": "editorTextFocus" } ]
vscode 自定义配置参考:java
{ "editor.fontSize": 18, "files.associations": { "*.es": "javascript", "*.es6": "javascript" }, // 控制编辑器是否应呈现空白字符 "editor.renderWhitespace": true, // 启用后,将在保存文件时剪裁尾随空格。 "files.trimTrailingWhitespace": true, // File extensions that can be beautified as javascript or JSON. "beautify.JSfiles": [ "", "es", "es6", "js", "json", "jsbeautifyrc", "jshintrc" ] }
官方快捷键大全:https://code.visualstudio.com/docs/customization/keybindings
http://blog.csdn.net/u010019717/article/details/50443970es6