F1 或 Ctrl+Shift+P
: 打開命令面板。在打開的輸入框內,能夠輸入任何命令,例如:javascript
Ctrl+P
模式Ctrl+P
下輸入 > 能夠進入 Ctrl+Shift+P
模式Ctrl+P
窗口下還能夠:
Ctrl+Shift+M
Ctrl+G
直接進入Ctrl+Shift+O
直接進入Ctrl+Shift+O
後輸入:進入Ctrl+T
Ctrl+Shift+N
Ctrl+Shift+W
Ctrl+N
Ctrl+Tab
Ctrl+1
Ctrl+2
Ctrl+3
Ctrl+k
而後按 Left或 RightCtrl+[
、 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
Ctrl+End
Ctrl+Home
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
Ctrl + Shift + L
鍵,便可快速選中當前文件中全部匹配的詞,並在每個詞後面有一個編輯光標,可批量同步編輯Shift+F12
Ctrl+F12
F2
,輸入新名字,回車,則全部該方法的引用也都同步更新了F8
逐個跳轉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
html
修改 keybindings.json
:前端
01 |
// Place your key bindings in this file to overwrite the defaults |
02 |
[ |
03 |
// ctrl+space 被切換輸入法快捷鍵佔用 |
04 |
{ |
05 |
"key" : "ctrl+alt+space" , |
06 |
"command" : "editor.action.triggerSuggest" , |
07 |
"when" : "editorTextFocus" |
08 |
}, |
09 |
// ctrl+d 刪除一行 |
10 |
{ |
11 |
"key" : "ctrl+d" , |
12 |
"command" : "editor.action.deleteLines" , |
13 |
"when" : "editorTextFocus" |
14 |
}, |
15 |
// 與刪除一行的快捷鍵互換 |
16 |
{ |
17 |
"key" : "ctrl+shift+k" , |
18 |
"command" : "editor.action.addSelectionToNextFindMatch" , |
19 |
"when" : "editorFocus" |
20 |
}, |
21 |
// ctrl+shift+/多行註釋 |
22 |
{ |
23 |
"key" : "ctrl+shift+/" , |
24 |
"command" : "editor.action.blockComment" , |
25 |
"when" : "editorTextFocus" |
26 |
}, |
27 |
// 定製與 sublime 相同的大小寫轉換快捷鍵 |
28 |
editor.action.transformToLowercase |
29 |
editor.action.transformToUppercase |
30 |
{ |
31 |
"key" : "ctrl+k ctrl+u" , |
32 |
"command" : "editor.action.transformToUppercase" |
33 |
"when" : "editorTextFocus" |
34 |
}, |
35 |
{ |
36 |
"key" : "ctrl+k ctrl+l" , |
37 |
"command" : "editor.action.transformToLowercase" |
38 |
"when" : "editorTextFocus" |
39 |
} |
40 |
] |
前端開發必備插件vue
使用等寬字體:java
vscode 自定義配置參考:git
01 |
{ |
02 |
"editor.fontSize" : 16 , |
03 |
"editor.tabSize" : 2 , |
04 |
"editor.fontLigatures" : true , |
05 |
// 使用等寬字體 Fira Code |
06 |
"editor.fontFamily" : "Fira Code, 'Noto Sans CJK SC Medium', Consolas, 'Courier New', monospace" , |
07 |
// 關閉右側的 minimap |
08 |
"editor.minimap.enabled" : false , |
09 |
"editor.minimap.renderCharacters" : false , |
10 |
"files.associations" : { |
11 |
"*.es" : "javascript" , |
12 |
"*.es6" : "javascript" |
13 |
}, |
14 |
// 控制編輯器是否應呈現空白字符 |
15 |
"editor.renderWhitespace" : "all" , |
16 |
// 啓用後,將在保存文件時剪裁尾隨空格。 |
17 |
"files.trimTrailingWhitespace" : true , |
18 |
// File extensions that can be beautified as javascript or JSON. |
19 |
"beautify.JSfiles" : [ |
20 |
"" , |
21 |
"es" , |
22 |
"es6" , |
23 |
"js" , |
24 |
"json" , |
25 |
"jsbeautifyrc" , |
26 |
"jshintrc" |
27 |
], |
28 |
// 關閉 git 自動刷新、fetch、add 操做 |
29 |
"git.enableSmartCommit" : false , |
30 |
"git.enabled" : true , |
31 |
"git.autorefresh" : false , |
32 |
"git.autofetch" : false , |
33 |
} |