visual studio code 鍵盤快捷鍵參考
阿新 • • 發佈:2019-01-18
原文
引用
鍵盤快捷鍵參考
這些鍵盤快捷鍵的可列印版本連結:
基本編輯
注意:以下是使用標準美式鍵盤佈局的.如果您使用不同的鍵盤佈局,請閱讀這裡 .
鍵 | 命令 | 命令ID |
---|---|---|
Ctrl + X | 切線(空選) |
editor.action.clipboardCutAction |
Ctrl + C | 複製線(空選) |
editor.action.clipboardCopyAction |
Ctrl + Shift + K | 刪除行 |
editor.action.deleteLines |
Ctrl + Enter | 在下面插入行 |
editor.action.insertLineAfter |
Ctrl + Shift + Enter | 在上面插入行 |
editor.action.insertLineBefore |
Alt + Down | 向下移動線 |
editor.action.moveLinesDownAction |
Alt + Up | 向上移動線 |
editor.action.moveLinesUpAction |
Shift + Alt + Down | 向下複製線 |
editor.action.copyLinesDownAction |
Shift + Alt + Up | 複製行 |
editor.action.copyLinesUpAction |
Ctrl + D | 將選擇新增到下一個查詢匹配 |
editor.action.addSelectionToNextFindMatch |
Ctrl + K Ctrl + D | 將最後一個選擇移至下一個查詢匹配 |
editor.action.moveSelectionToNextFindMatch |
Ctrl + U | 撤消上一個游標操作 |
cursorUndo |
Shift + Alt + I |
在所選每行的末尾插入游標 |
editor.action.insertCursorAtEndOfEachLineSelected |
Ctrl + Shift + L | 選擇當前選擇的所有事件 |
editor.action.selectHighlights |
Ctrl + F2 | 選擇當前單詞的所有出現 |
editor.action.changeAll |
Ctrl + I | 選擇當前行 |
expandLineSelection |
Ctrl + Alt + Down | 在下面插入游標 |
editor.action.insertCursorBelow |
Ctrl + Alt + Up | 在上面插入游標 |
editor.action.insertCursorAbove |
Ctrl + Shift + \ | 跳轉到匹配括號 |
editor.action.jumpToBracket |
Ctrl + ] | 縮排線 |
editor.action.indentLines |
Ctrl + [ | Outedent線 |
editor.action.outdentLines |
Home | 轉到行首 |
cursorHome |
End | 轉到行尾 |
cursorEnd |
Ctrl + End | 轉到檔案結尾 |
cursorBottom |
Ctrl + Home | 轉到檔案開頭 |
cursorTop |
Ctrl + Down | 向下滾動線 |
scrollLineDown |
Ctrl + Up | 滾動向上 |
scrollLineUp |
Alt + PageDown | 向下滾動頁面 |
scrollPageDown |
Alt + PageUp | 向上翻頁 |
scrollPageUp |
Ctrl + Shift + [ | 摺疊(摺疊)區域 |
editor.fold |
Ctrl + Shift +] | 展開(uncollapse)區域 |
editor.unfold |
Ctrl + K Ctrl + [ | 摺疊(摺疊)所有子區域 |
editor.foldRecursively |
Ctrl + K Ctrl +] | 展開(uncollapse)所有子區域 |
editor.unfoldRecursively |
Ctrl + K Ctrl + 0 | 摺疊(摺疊)所有區域 |
editor.foldAll |
Ctrl + K Ctrl + J | 展開(uncollapse)所有地區 |
editor.unfoldAll |
Ctrl + K Ctrl + C | 新增行註釋 |
editor.action.addCommentLine |
Ctrl + K Ctrl + U | 刪除行註釋 |
editor.action.removeCommentLine |
Ctrl + / | 切換線註釋 |
editor.action.commentLine |
Shift + Alt + A | 切換塊註釋 |
editor.action.blockComment |
Ctrl + F | 找 |
actions.find |
Ctrl + H | 更換 |
editor.action.startFindReplaceAction |
F3 | 找下一個 |
editor.action.nextMatchFindAction |
Shift + F3 | 查詢上一個 |
editor.action.previousMatchFindAction |
Alt + Enter | 選擇查詢匹配的所有出現次數 |
editor.action.selectAllMatches |
Alt + C | 切換查詢區分大小寫 |
toggleFindCaseSensitive |
Alt + R | 切換查詢正則表示式 |
toggleFindRegex |
Alt + W | 切換查詢整個詞 |
toggleFindWholeWord |
Ctrl + M | 切換使用Tab鍵設定焦點 |
editor.action.toggleTabFocusMode |
unassigned | 切換渲染空白 |
toggleRenderWhitespace |
Alt + Z | 切換換行 |
editor.action.toggleWordWrap |
豐富的語言編輯
鍵 | 命令 | 命令ID |
---|---|---|
Ctrl + space | 觸發建議 |
editor.action.triggerSuggest |
Ctrl + Shift + space | 觸發器引數提示 |
editor.action.triggerParameterHints |
Shift + Alt + F | 格式文件 |
editor.action.formatDocument |
Ctrl + K Ctrl + F | 格式選擇 |
editor.action.formatSelection |
F12 | 轉到定義 |
editor.action.goToDeclaration |
Alt + F12 | Peek定義 |
editor.action.previewDeclaration |
Ctrl + K F12 | 開啟定義到邊 |
editor.action.openDeclarationToTheSide |
Ctrl + . | 快速解決 |
editor.action.quickFix |
Shift + F12 | 顯示引用 |
editor.action.referenceSearch.trigger |
F2 | 重新命名符號 |
editor.action.rename |
Ctrl + Shift + . | 替換為下一個值 |
editor.action.inPlaceReplace.down |
Ctrl + Shift + , | 替換為以前的值 |
editor.action.inPlaceReplace.up |
Shift + Alt + Right | 展開AST選擇 |
editor.action.smartSelect.grow |
Shift + Alt + left | 收縮AST選擇 |
editor.action.smartSelect.shrink |
Ctrl + K Ctrl + X | 修剪尾隨空白 |
editor.action.trimTrailingWhitespace |
Ctrl + KM | 更改語言模式 |
workbench.action.editor.changeLanguageMode |
導航
鍵 |
---|