# <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> ![](https://i.imgur.com/2Z4hCPj.jpg) <br> ### <font class="h3">切換頁籤 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows | CTRL + PAGE_Down或按住ALT以及一個數字(1到9) | | Mac | option+command+左右鍵 | ![](https://i.imgur.com/NlzUoL7.jpg) <br> ### <font class="h3">開啟終端機介面 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows | Ctrl+` | | Mac | Cmd+` | ![](https://i.imgur.com/53CWH4q.jpg) <br> ### <font class="h3">開啟某檔案 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows | Contrl+P | | Mac | Cmd+P| ![](https://i.imgur.com/XBzIYyf.jpg) <br> ### <font class="h3">收尋程式碼片段 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows | Ctrl+shift+F | | Mac | Cmd+P| ![](https://i.imgur.com/IHJOdCI.gif) <br> ### <font class="h3">直接在下方添加一行 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows | Ctrl+Enter | | Mac | Cmd+Enter| ![](https://i.imgur.com/vKAImav.gif) <br> ### <font class="h3">同時選取相同名稱的字串 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows | Ctrl + Shift + L | | Mac | Cmd + Shift + L| 若不想一次選取全部,而是要一個一個來選,可以先反白關鍵字,在按下面的組合鍵,每按一次就會選取下一個同字串 | 平台 | 快速鍵 | | ------ | ----------- | | Windows | Ctrl+D | | Mac | Cmd+D| ![](https://i.imgur.com/8uRUhyt.gif) <br> ### <font class="h3">增加/減少選取 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows | Alt+Shift+→/←| | Mac | Option+shift+→/←| ![](https://i.imgur.com/ODA1VUk.gif) <br> ### <font class="h3">跳躍的移動 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows | Ctrl+←→| | Mac | Cmd+←→| ![](https://i.imgur.com/y2JBSGT.gif) <br> ### <font class="h3">移動行 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows |Alt+↑↓| | Mac | Option+↑↓| ![](https://i.imgur.com/nu1ItHc.gif) <br> ### <font class="h3">一次編輯多行或多個位置 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows |Alt + 滑鼠右鍵點擊位置| | Mac | Alt + Shift 按滑鼠右鍵並上或下拖曳多行| ![](https://i.imgur.com/fXFAq9B.gif) <br> ### <font class="h3">註解(不同類型文件,會自動編寫對應的註解) </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows |Ctrl+/| | Mac | Cmd+/| ![](https://i.imgur.com/ymraFkC.gif) <br> ### <font class="h3">縮排 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows |Tab鍵| | Mac | Tab鍵| ![](https://i.imgur.com/NF3NWXt.gif) <br> ### <font class="h3">重整(格式化) </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows |alt+shift+F| | Mac | alt+shift+F| ![](https://i.imgur.com/57dsEte.gif) <br> ### <font class="h3">快速複製這一行 </font> | 平台 | 快速鍵 | | ------ | ----------- | | Windows | alt + shift + ↑ or ↓| | Mac | option + shift + ↑ or ↓| ![](https://i.imgur.com/SAtnNny.gif) <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| ![](https://i.imgur.com/2CuoBCP.gif) <br><br><br> ### <font class="h3">表情符號</font> | 平台 | 快速鍵 | | ---- | ------ | |Windows|win+;| | Mac | ctrl+cmd + space| ![](https://i.imgur.com/4aVABu4.png)