# <font class="h2">VSCode常用快捷鍵</font> ###### tags: `vscode` <style> .h2 { background: linear-gradient(135deg,#fff,#537479) ; color: #537479; display:block; padding: 6px 5px; border-radius: 4px; } .h3 { background: linear-gradient(180deg,#fff 50%,#c9d5d4) ; color: #537479; display:block; padding: 6px 5px; border-bottom: 3px solid #537479; } .h4 { color: #537479; font-weight:bold; font-size:1.1em; } </style> :arrow_right:[六角學院翻譯 VSCode 熱鍵表](https://github.com/hexschool/VSCode_Hotkey_Translation) ### <font class="h3">快捷鍵設定</font>  <br> ### <font class="h3">切換頁籤 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows | CTRL + PAGE_Down或按住ALT以及一個數字(1到9) | | Mac | option+command+左右鍵 |  <br> ### <font class="h3">開啟終端機介面 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows | Ctrl+` | | Mac | Cmd+` |  <br> ### <font class="h3">開啟某檔案 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows | Contrl+P | | Mac | Cmd+P|  <br> ### <font class="h3">收尋程式碼片段 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows | Ctrl+shift+F | | Mac | Cmd+P|  <br> ### <font class="h3">直接在下方添加一行 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows | Ctrl+Enter | | Mac | Cmd+Enter|  <br> ### <font class="h3">同時選取相同名稱的字串 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows | Ctrl + Shift + L | | Mac | Cmd + Shift + L| 若不想一次選取全部,而是要一個一個來選,可以先反白關鍵字,在按下面的組合鍵,每按一次就會選取下一個同字串 | 平台 | 快速鍵 | | ------ | ----------- | | Windows | Ctrl+D | | Mac | Cmd+D|  <br> ### <font class="h3">增加/減少選取 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows | Alt+Shift+→/←| | Mac | Option+shift+→/←|  <br> ### <font class="h3">跳躍的移動 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows | Ctrl+←→| | Mac | Cmd+←→|  <br> ### <font class="h3">移動行 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows |Alt+↑↓| | Mac | Option+↑↓|  <br> ### <font class="h3">一次編輯多行或多個位置 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows |Alt + 滑鼠右鍵點擊位置| | Mac | Alt + Shift 按滑鼠右鍵並上或下拖曳多行|  <br> ### <font class="h3">註解(不同類型文件,會自動編寫對應的註解) </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows |Ctrl+/| | Mac | Cmd+/|  <br> ### <font class="h3">縮排 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows |Tab鍵| | Mac | Tab鍵|  <br> ### <font class="h3">重整(格式化) </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows |alt+shift+F| | Mac | alt+shift+F|  <br> ### <font class="h3">快速複製這一行 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows | alt + shift + ↑ or ↓| | Mac | option + shift + ↑ or ↓|  <br> ### <font class="h3">刪除一整行 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows | ctrl + shift + k| | Mac | cmd + shift + k| <br> ### <font class="h3">展開全部&摺疊全部 </font> 展開全部: | 平台 | 快速鍵 | | ---- | ------ | |Windows| ctrl + k +j| | Mac | cmd + k +j| <br> 摺疊全部: | 平台 | 快速鍵 | | ---- | ------ | |Windows| ctrl + k +0| | Mac | cmd + k +0|  <br><br><br> ### <font class="h3">表情符號</font> | 平台 | 快速鍵 | | ---- | ------ | |Windows|win+;| | Mac | ctrl+cmd + space| 
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up