Skip to content

Instantly share code, notes, and snippets.

@RB-Lab
Last active December 4, 2018 04:31
Show Gist options
  • Save RB-Lab/6f44525de6a32d27e71e34aea7ed771a to your computer and use it in GitHub Desktop.
Save RB-Lab/6f44525de6a32d27e71e34aea7ed771a to your computer and use it in GitHub Desktop.
Settings for VSCode
{
"console.log": {
"prefix": "log",
"body": [
"console.log('$1')$2"
],
"description": "Log output to console"
},
"ES6 Import": {
"prefix": "im",
"body": "import {$2} from '$1'$3"
},
"Import React stuff": {
"prefix": "ir",
"body": "import React, {Component} from 'react'"
},
"Common JS require": {
"prefix": "req",
"body": "const {$2} = require('$1')$3"
},
"Describe BDD suite": {
"prefix": "dsc",
"body": [
"describe('$1', () => {",
"\t$0",
"})"
]
},
"It test case in BDD style": {
"prefix": "it",
"body": [
"it('should $1', () => {",
"\t$0",
"})"
]
},
"eslint-disable-line": {
"prefix": "esdl",
"body": "// eslint-disable-line $0"
},
"eslint-disable": {
"prefix": "esd",
"body": "/* eslint-disable $0 */"
}
}
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+shift+l",
"command": "workbench.action.terminal.clear"
},
{
"key": "alt+d",
"command": "editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "alt+shift+d",
"command": "editor.action.moveSelectionToPreviousFindMatch",
"when": "editorFocus"
},
{
"key": "ctrl+d",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "ctrl+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorFocus"
},
{
"key": "ctrl+shift+d",
"command": "-editor.action.copyLinesDownAction",
"when": "editorFocus"
},
{
"key": "ctrl+`",
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "ctrl+k ctrl+t",
"command": "workbench.action.selectTheme"
},
{
"key": "shift+alt+backspace",
"command": "editor.action.deleteLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+y",
"command": "-editor.action.deleteLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+]",
"command": "workbench.action.navigateForward",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+[",
"command": "workbench.action.navigateBack",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+right",
"command": "cursorEnd"
},
{
"key": "alt+left",
"command": "cursorHome"
}
]
{
"sublimeTextKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.snippetSuggestions": "top",
"editor.formatOnPaste": true,
"files.autoSave": "onWindowChange",
"workbench.colorTheme": "Harmonic16 Light Theme",
"workbench.colorCustomizations": {
"[Harmonic16 Light Theme]": {
"editor.selectionBackground": "#d8c9c1",
"editor.selectionHighlightBackground": "#e7e2d5",
"editor.lineHighlightBackground": "#f3efe5"
}
},
"editor.tokenColorCustomizations": {
"[Harmonic16 Light Theme]": {
"textMateRules": [
{
"scope": "invalid.illegal",
"settings": {
"foreground": "#ff0000"
}
}
]
}
}
}
Settings for VSCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment