VS Code · Add a cursor with the mouse
Selection
Windows · Linux
Alt+ClickMac
Option+Click在你點按的每個位置多放一個游標:Windows 和 Linux 上是 Alt+點按,mac 上是 Option+點按,按 Esc 又收回成一個。
- 分組
- Selection
- 同時按幾個鍵
- 2
記住命令選擇區(Ctrl/Cmd+Shift+P),其餘就不用背了——輸入功能名稱,快速鍵就列在旁邊。
按鍵名稱怎麼讀
- 用 + 連起來的鍵要一起按。Ctrl+Shift+P 是按住 Ctrl 和 Shift 再按 P。
- Mac 上 Cmd 是 ⌘,Option 是 ⌥(有些鍵盤上印作 Alt),Control 是 ⌃,Shift 是 ⇧。
- Windows 的 Ctrl 在 Mac 上大多換成 Cmd,但並非總是如此——本詞典把兩個組合分開列出。
- 開著韓文、日文或中文輸入法時,含字母鍵的快速鍵可能沒反應。切到英文輸入再試。
- 組合按下去毫無反應,通常是別的程式把它當全域快速鍵先占了。
常見問題
Q. VS Code 裡 Add a cursor with the mouse 的快速鍵是什麼?
在你點按的每個位置多放一個游標:Windows 和 Linux 上是 Alt+點按,mac 上是 Option+點按,按 Esc 又收回成一個。 Windows 是 Alt+Click,Mac 是 Option+Click。
Q. Windows 和 Mac 一樣嗎?
不一樣。Windows 是 Alt+Click,Mac 是 Option+Click。
Q. 要按幾個鍵?
2 個同時按。這個組合屬於 VS Code 的 Selection。
相關快速鍵
Add cursor belowCtrl+Alt+DownAdd cursor at next occurrenceCtrl+DAdd cursor aboveCtrl+Alt+UpSelect every occurrence of the selectionCtrl+Shift+LSelect every occurrence of the wordCtrl+F2Cursor at the end of every selected lineShift+Alt+IColumn selectionCtrl+Shift+Alt+DownSelect the current lineCtrl+L