编辑器统一 快捷键

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 ]
View Code

 

转载于:https://www.cnblogs.com/wfblog/p/9637549.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值