Last active
February 20, 2019 14:47
-
-
Save simonliu009/e10177701c6ae9fca2b596a516d965e6 to your computer and use it in GitHub Desktop.
vsc: vistual studio code 快捷键 #vscode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
多光标编辑 Multi cursor selection | |
基本: Alt+Click 即,按住 Alt 键,依次单击(或者选择)需要编辑的位置,可以依次添加光标。 Alt 键可以在设置中更改。 | |
一列多光标: Shift+Alt+Down 或者 Shift+Alt+Up 可以在上下位置添加光标。 | |
依次选中相同单词: 选中一个单词,按 Ctrl+D ,可以依次选中下一个相同单词。 | |
选中所有相同单词: 选中一个单词,按 Shift+Ctrl+L (shift+cmd+L),可以一次性选中文本中 所有相同单词 。 | |
矩形选择: 按住 Shift+Alt ,再进行选择,则选择区域是一个矩形。 | |
括号选择: Shift+Alt+Right ,会选中匹配括号中的内容,并可以扩大选中区域。 | |
选择相同实例: | |
多行光标 :option+shift 拖动光标 | |
多个光标 :option + 鼠标点击 | |
块选择: shift+alt+cmd + 方向键 | |
Shift+Alt+A Toggle block comment 切换块注释 | |
⌘←/ ⌘→ Go to beginning/end of line 跳到行首/行尾 | |
⌘↑ / ⌘↓ Go to beginning/end of file 跳到文件头/文件尾 | |
⌘+k ⌘+f (或者Option+Shift+F)格式化选中代码 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment