Skip to content

Commit c31429f

Browse files
committed
Merge branch 'master' of github.com:AndrewRayCode/configs
2 parents ae05b38 + 3314df9 commit c31429f

3 files changed

Lines changed: 27 additions & 7 deletions

File tree

code/keybindings.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
// Vim navigate backwards/forwards
44
{ "key": "ctrl+o", "command": "workbench.action.navigateBack", "when": "editorTextFocus" },
55
{ "key": "ctrl+i", "command": "workbench.action.navigateForward", "when": "editorTextFocus" },
6-
{ "key": "cmd+k p", "command": "extension.copyRelativePathOfActiveFile"},
7-
{ "key": "cmd+k f", "command": "workbench.action.files.copyPathOfActiveFile" },
8-
{ "key": "cmd-k l", "command": "latex-workshop.tab" },
6+
{ "key": "cmd+k p", "command": "extension.copyRelativePathOfActiveFile", "when": "editorTextFocus" },
7+
{ "key": "cmd+k f", "command": "workbench.action.files.copyPathOfActiveFile", "when": "editorTextFocus" },
8+
{ "key": "cmd-k l", "command": "latex-workshop.tab", "when": "editorTextFocus" },
99
{ "key": "cmd-alt-m", "command": "workbench.action.terminal.focus" },
1010
{ "key": "cmd-alt-m", "command": "workbench.action.terminal.focus" },
1111
{ "key": "cmd-shift-b", "command": "editor.action.revealDefinition", "when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor" },
1212

1313
// terrible defaults for "rails run specs"
1414
{ "key": "shift+cmd+t", "command": "workbench.action.reopenClosedEditor" },
15-
{ "key": "cmd+k cmd+f", "command": "extension.runFileSpecs" },
15+
{ "key": "cmd+k cmd+f", "command": "extension.runFileSpecs", "when": "editorTextFocus" },
1616

1717
// Jump around in vim
1818
{

code/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@
5252
// "workbench.settings.editor": "json",
5353
"files.autoSave": "off",
5454
"breadcrumbs.symbolPath": "off"
55-
}
55+
}

code/snippets/javascript.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,24 @@
1515
],
1616
"description": "For Loop"
1717
},
18+
"Console Log": {
19+
"prefix": "c",
20+
"body": [
21+
"console.log($1)",
22+
],
23+
"description": "Console log string"
24+
},
25+
"Console Log Text": {
26+
"prefix": "c'",
27+
"body": [
28+
"console.log('$1')",
29+
],
30+
"description": "Console log text"
31+
},
1832
"Console Log String": {
1933
"prefix": "c,",
2034
"body": [
21-
"console.log('$1', ${1});",
35+
"console.log('$1', ${1})",
2236
],
2337
"description": "Console log string"
2438
},
@@ -32,5 +46,11 @@
3246
],
3347
"description": "Console Log"
3448
},
35-
49+
"Function body": {
50+
"prefix": "()",
51+
"body": [
52+
"() => {$0}"
53+
],
54+
"description": "Function body"
55+
}
3656
}

0 commit comments

Comments
 (0)