-
Notifications
You must be signed in to change notification settings - Fork 0
/
keybindings.json
99 lines (99 loc) · 2.54 KB
/
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
// Place your key bindings in this file to override the defaults
[
{
"key": "alt+c",
"command": "editor.action.clipboardCopyAction",
"when": "textInputFocus"
},
{
"key": "alt+v",
"command": "editor.action.clipboardPasteAction",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+s",
"command": "workbench.action.files.saveAll",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+k s",
"command": "-workbench.action.files.saveAll"
},
{
"key": "alt+s",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus && editorLangId =~ /^typescript|^javascript/",
"args": {
"snippet": "const [${TM_SELECTED_TEXT},set${TM_SELECTED_TEXT/(.*)/${1:/capitalize}/}] = useState($2)"
}
},
// {
// "key": "alt+d",
// "command": "editor.action.insertSnippet",
// "when": "editorTextFocus",
// "args": {
// "snippet": "export const ${TM_SELECTED_TEXT/(.*)/${1:/capitalize}/} = styled.div.attrs((props: Base${3:${TM_DIRECTORY/^.+\\\\(.*)$/$1/}}Props)=>{})`$4`"
// }
// },
{
"key": "alt+d",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus && editorLangId =~ /^typescript|^javascript/",
"args": {
"snippet": "export const ${TM_SELECTED_TEXT/(.*)/${1:/capitalize}/} = styled.div`$4`"
}
},
{
"key": "alt+a",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus && editorLangId =~ /^typescript|^javascript/",
"args": {
"langId": "typescript",
"name": "create restate structure"
}
},
{
"key": "alt+i",
"command": "editor.action.sourceAction",
"args": {
"kind": "source.addMissingImports",
"apply": "first"
}
},
{
"key": "ctrl+shift+i",
"command": "editor.action.sourceAction",
"args": {
"kind": "source.organizeImports",
"apply": "first"
}
},
{
"key": "ctrl+shift+w",
"command": "workbench.action.closeUnmodifiedEditors"
},
{
"key": "ctrl+k u",
"command": "-workbench.action.closeUnmodifiedEditors"
},
{
"key": "ctrl+e ctrl+e",
"command": "github.copilot.generate",
"when": "editorTextFocus"
},
{
"key": "ctrl+enter",
"command": "-github.copilot.generate",
"when": "editorTextFocus"
},
{
"key": "ctrl+e ctrl+e",
"command": "github.copilot.generate",
"when": "editorTextFocus && github.copilot.activated"
},
{
"key": "ctrl+enter",
"command": "-github.copilot.generate",
"when": "editorTextFocus && github.copilot.activated"
}
]