Egret Wing自定义快捷键Mac

修改keybindings.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// 将键绑定放入此文件中以覆盖默认值
[
{
"comment": "格式化",
"key": "shift+cmd+f",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"comment": "搜索引用",
"key": "shift+cmd+g",
"command": "editor.action.referenceSearch.trigger",
"when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor"
},
{
"comment": "跳转到定义",
"key": "f3",
"command": "editor.action.goToDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus"
},
{
"comment": "返回上一个",
"key": "alt+left",
"command": "workbench.action.navigateBack"
},
{
"comment": "前进下一个",
"key": "alt+right",
"command": "workbench.action.navigateForward"
},
{
"comment": "删除一行",
"key": "cmd+d",
"command": "editor.action.deleteLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"comment": "代码提示",
"key": "alt+/",
"command": "editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && editorTextFocus && !editorReadonly"
},
{
"comment": "快速打开",
"key": "shift+cmd+t",
"command": "workbench.action.quickOpen"
},
{
"comment": "编译",
"key": "cmd+b",
"command": "workbench.action.tasks.build"
},
{
"comment": "Debug:单步跳过",
"key": "f6",
"command": "workbench.action.debug.stepOver",
"when": "inDebugMode"
},
{
"comment": "Debug:单步进入",
"key": "f5",
"command": "workbench.action.debug.stepInto",
"when": "inDebugMode"
},
{
"comment": "Debug:继续",
"key": "f8",
"command": "workbench.action.debug.continue",
"when": "inDebugMode"
},
{
"comment": "Run调试模式",
"key": "f4",
"command": "workbench.action.debug.run",
"when": "!inDebugMode"
},
{
"comment": "重命名",
"key": "f2",
"command": "editor.action.rename",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
},
{
"comment": "注释",
"key": "ctrl+/",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"comment": "当前行向下移",
"key": "alt+down",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"comment": "当前行向上移",
"key": "alt+up",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
}
]

坚持原创技术分享,您的支持将鼓励我继续创作!