1、编辑器统一 快捷键
向下复制一行(或块) ctrl+D查找(文件中查找) ctrl+F (ctrl+shift+F)查找下一个(上一个) F3 (shift+F3)替换(文件中替换) ctrl+R (ctrl+shift+R)格式化代码 ctrl+Alt+L 删除一行 ctrl+Y 折叠 (展开) ctrl+ — (ctrl+ +) 行注释 ctrl+/ 块注释 ctrl+shirt+/ 定位到某一行 ctrl+G 光标跳到代码块的头部(尾部)ctrl+[ (ctrl+]) 书签 (下一个,上一个) F11 (F2, shift+F2) 前进 (后退) Alt + ← (Alt + →)
2、vscode编辑器快捷方式
1 // 将按键绑定配置放入此文件中即可覆盖默认值 2 [ 3 { 4 "key": "ctrl+d", 5 "command": "editor.action.copyLinesDownAction", 6 "when": "editorFocus" 7 }, 8 { 9 "key": "ctrl+shift+d",10 "command": "-editor.action.copyLinesDownAction",11 "when": "editorFocus"12 },13 {14 "key": "ctrl+r",15 "command": "editor.action.startFindReplaceAction"16 },17 {18 "key": "ctrl+h",19 "command": "-editor.action.startFindReplaceAction"20 },21 {22 "key": "ctrl+shift+oem_minus",23 "command": "editor.foldAll",24 "when": "editorTextFocus"25 },26 {27 "key": "ctrl+k ctrl+0",28 "command": "-editor.foldAll",29 "when": "editorTextFocus"30 },31 {32 "key": "ctrl+shift+oem_plus",33 "command": "editor.unfoldAll",34 "when": "editorTextFocus"35 },36 {37 "key": "ctrl+k ctrl+j",38 "command": "-editor.unfoldAll",39 "when": "editorTextFocus"40 },41 {42 "key": "ctrl+shift+oem_2",43 "command": "editor.action.blockComment",44 "when": "editorTextFocus && !editorReadonly"45 },46 {47 "key": "shift+alt+a",48 "command": "-editor.action.blockComment",49 "when": "editorTextFocus && !editorReadonly"50 },51 {52 "key": "ctrl+y",53 "command": "editor.action.deleteLines",54 "when": "textInputFocus && !editorReadonly"55 },56 {57 "key": "ctrl+shift+k",58 "command": "-editor.action.deleteLines",59 "when": "textInputFocus && !editorReadonly"60 },61 {62 "key": "ctrl+alt+l",63 "command": "editor.action.formatDocument",64 "when": "editorTextFocus && !editorReadonly"65 },66 {67 "key": "shift+alt+f",68 "command": "-editor.action.formatDocument",69 "when": "editorTextFocus && !editorReadonly"70 }71 ]