官方快捷鍵大全:https://code.visualstudio.com/docs/customization/keybindingsjavascript
Visual Studio Code是個牛逼的編輯器,啓動很是快,徹底能夠用來代替其餘文本文件編輯工具。又能夠用來作開發,支持各類語言,相比其餘IDE,輕量級徹底可配置還集成Git感受很是的適合前端開發。 因此我仔細研究了一下文檔將來可能會做爲主力工具使用。html
最重要的功能就是F1
或Ctrl+Shift+P
打開的命令面板了,在這個命令框裏能夠執行VSCode的任何一條命令,甚相當閉這個編輯器。
按一下Backspace
會進入到Ctrl+P
模式裏
在Ctrl+P
下輸入>
又能夠回到Ctrl+Shift+P
模式。
在Ctrl+P
窗口下還能夠前端
?
列出當前可執行的動做!
顯示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
Ctrl+\
,也能夠按住Ctrl鼠標點擊Explorer裏的文件名Ctrl+1
Ctrl+2
Ctrl+3
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+Click
添加cursor或者Ctrl+Alt+Down
或 Ctrl+Alt+Up
Ctrl+Shift+L
Ctrl+D
下一個匹配的也被選中(被我自定義成刪除當前行了,見下邊Ctrl+Shift+K
)Ctrl+U
Shift+F12
Ctrl+F12
F2
,輸入新的名字,回車,會發現全部的文件都修改過了。F8
逐個跳轉Set file to compare
,而後須要對比的文件上右鍵選擇Compare with 'file_name_you_chose'
.Ctrl+F
Ctrl+H
Ctrl+Shift+F
*
to match one or more characters in a path segment?
to match on one character in a path segment**
to match any number of path segments ,including none{}
to group conditions (e.g. {**/*.html,**/*.txt}
matches all html and txt files)[]
to declare a range of characters to match (e.g., example.[0-9]
to match on example.0
,example.1
, …F11
Ctrl + =
/Ctrl + -
Ctrl+B
Ctrl+Shift+E
Ctrl+Shift+F
Ctrl+Shift+G
Ctrl+Shift+D
Ctrl+Shift+U
Ctrl+Shift+P
,輸入 autoFile -> Preferences -> Keyboard Shortcutsjava
修改keybindings.json
,個人顯示在這裏C:\Users\Administrator\AppData\Roaming\Code\User\keybindings.json
git
1
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
// 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" } ] |
新版本支持插件安裝了json
插件市場 https://marketplace.visualstudio.com/#VSCode編輯器
F1
輸入 extensions
函數
點擊第一個開始安裝或升級,或者也能夠 Ctrl+P
輸入 ext install
進入
點擊第二個會列出已經安裝的擴展,能夠從中卸載工具
from: http://blog.csdn.NET/u010019717/article/details/50443970this