Skip to content

Instantly share code, notes, and snippets.

@jeremychone
Last active January 20, 2020 01:40
Show Gist options
  • Save jeremychone/2cd6d806c5b71ad83ddd924f5c2d990d to your computer and use it in GitHub Desktop.
Save jeremychone/2cd6d806c5b71ad83ddd924f5c2d990d to your computer and use it in GitHub Desktop.
// Place your key bindings in this file to overwrite the defaults
[
// ------ Terminal --------- //
{
"key": "ctrl+alt+l",
"command": "workbench.action.terminal.focusNext"
},
{
"key": "ctrl+alt+k",
"command": "workbench.action.terminal.focusPrevious"
},
{
"key": "ctrl+alt+t",
"command": "workbench.action.terminal.focus"
},
// ------ /Terminal --------- //
{
"key": "alt+cmd+n",
"command": "explorer.newFile"
},
// ------ Change Next/Prev Match --------- //
{
"key": "alt+g",
"command": "editor.action.nextMatchFindAction",
"when": "editorFocus"
},
{
"key": "cmd+g",
"command": "-editor.action.nextMatchFindAction",
"when": "editorFocus"
},
{
"key": "shift+alt+g",
"command": "editor.action.previousMatchFindAction",
"when": "editorFocus"
},
{
"key": "shift+cmd+g",
"command": "-editor.action.previousMatchFindAction",
"when": "editorFocus"
},
// ------ /Change Next/Prev Match --------- //
// ------ Change Default SCM View (to be consistent with the other views) --------- //
{
"key": "shift+cmd+g",
"command": "workbench.view.scm"
},
{
"key": "ctrl+shift+g",
"command": "-workbench.view.scm"
},
// ------ /Change Default SCM View (to be consistent with the other views) --------- //
// ------ Snippets --------- //
{
"key": "cmd+k cmd+i",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus"
},
{
"key": "cmd+k cmd+c",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"name": "Section Comment"
}
},
// ------ Snippets --------- //
// --------- delete line ------ //
{
"key": "cmd+backspace",
"command": "editor.action.deleteLines",
"when": "editorTextFocus && !editorReadonly"
},
// remove standard binding (not intuitive enough for one of most common action)
{
"key": "shift+cmd+k",
"command": "-editor.action.deleteLines",
"when": "editorTextFocus && !editorReadonly"
}
// --------- /delete line ------ //
,
{
"key": "alt+cmd+c alt+cmd+c",
"command": "workbench.files.action.collapseExplorerFolders"
}
]
// Place your settings in this file to overwrite the default settings
{
"http.proxySupport": "off",
// britesnow required
"editor.insertSpaces": false, // by default we use tabs
"files.associations": {
"*.tmpl": "html",
"*.hmd": "markdown",
"*.sketchscript": "javascript",
"*.ccss": "postcss",
},
"editor.renderWhitespace": "selection", // whitespace before start of line
"postcss.validate": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"[typescript]": {
"editor.formatOnSave": true,
"editor.formatOnPaste": true
},
"[javascript]": {
"editor.formatOnSave": true,
"editor.formatOnPaste": true
},
"[css]": {
"editor.formatOnSave": true,
"editor.formatOnPaste": true
},
"[rust]": {
"editor.formatOnSave": true,
"editor.formatOnPaste": true
},
"[markdown]": {
"editor.wordWrap": "on",
"editor.insertSpaces": true
},
// britesnow recommended
"editor.tabSize": 2, // small code indent
"workbench.startupEditor": "newUntitledFile", // no welcome tab on start
"editor.minimap.enabled": false, // minimap are arguably more noise than info. Cute but still noise.
// personal preference
"git.enableSmartCommit": true,
"window.zoomLevel": 0,
"extensions.ignoreRecommendations": true,
"markdown.preview.lineHeight": 2,
"editor.multiCursorModifier": "ctrlCmd",
"terminal.integrated.fontSize": 12,
"explorer.confirmDragAndDrop": false,
"editor.wordSeparators": "`~!@#$%^&*()+[{]}\\|;:'\",.<>/?", // remove the - and = to be a word separator
"extensions.autoUpdate": false,
"[postcss]": {
},
"typescript.updateImportsOnFileMove.enabled": "always",
"typescript.preferences.quoteStyle": "single",
"breadcrumbs.enabled": false,
// "terminal.integrated.shell.osx": "/bin/bash",
"editor.fontSize": 14,
// RUST
"rust-client.channel": "nightly",
"cSpell.userWords": [
"briteboard",
"mvdom",
"pcss",
"promisify",
"stylable",
"tmpl"
],
"cSpell.enabledLanguageIds": [
"asciidoc",
"c",
"cpp",
"csharp",
"css",
"git-commit",
"go",
"handlebars",
"haskell",
"html",
"jade",
"java",
"javascript",
"javascriptreact",
"jsonc",
"latex",
"less",
"markdown",
"php",
"plaintext",
"pug",
"python",
"restructuredtext",
"rust",
"scala",
"scss",
"text",
"typescriptreact",
"yaml",
"yml"
],
"cloudcode.gke": {
"projectIds": [
"viva-prod",
"viva-dev",
"briteboard-prod-01"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment