Skip to content

Instantly share code, notes, and snippets.

@keremtiryaki
Last active August 7, 2018 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keremtiryaki/18737fd0e51d815c65f54d027ae5a02c to your computer and use it in GitHub Desktop.
Save keremtiryaki/18737fd0e51d815c65f54d027ae5a02c to your computer and use it in GitHub Desktop.
vscode user settings and key bindings
// Place your key bindings in this file to overwrite the defaults
[
// FOLD START
{
"key": "cmd+alt+ctrl+up",
"command": "editor.foldRecursively",
"when": "editorTextFocus"
},
{
"key": "cmd+alt+ctrl+down",
"command": "editor.unfoldRecursively",
"when": "editorTextFocus"
},
{
"key": "cmd+alt+ctrl+f",
"command": "editor.fold",
"when": "editorTextFocus"
},
{
"key": "cmd+alt+ctrl+g",
"command": "editor.unfold",
"when": "editorTextFocus"
},
{
"key": "cmd+alt+ctrl+`",
"command": "editor.foldAll",
"when": "editorTextFocus"
},
{
"key": "cmd+alt+ctrl+1",
"command": "editor.foldLevel1",
"when": "editorTextFocus"
},
{
"key": "cmd+alt+ctrl+2",
"command": "editor.foldLevel2",
"when": "editorTextFocus"
},
{
"key": "cmd+alt+ctrl+3",
"command": "editor.foldLevel3",
"when": "editorTextFocus"
},
{
"key": "cmd+alt+ctrl+4",
"command": "editor.foldLevel4",
"when": "editorTextFocus"
},
{
"key": "cmd+alt+ctrl+5",
"command": "editor.foldLevel5",
"when": "editorTextFocus"
},
{
"key": "cmd+alt+ctrl+6",
"command": "editor.foldLevel6",
"when": "editorTextFocus"
},
{
"key": "cmd+alt+ctrl+7",
"command": "editor.foldLevel7",
"when": "editorTextFocus"
},
{
"key": "cmd+alt+ctrl+0",
"command": "editor.unfoldAll",
"when": "editorTextFocus"
},
// {
// "key": "cmd+k cmd+9",
// "command": "editor.unfoldAllMarkerRegions",
// "when": "editorTextFocus"
// },
// {
// "key": "cmd+alt+l",
// "command": "editor.foldAllBlockComments",
// "when": "editorTextFocus"
// },
// {
// "key": "cmd+k cmd+8",
// "command": "editor.foldAllMarkerRegions",
// "when": "editorTextFocus"
// },
// FOLD END
{
"key": "cmd+shift+b",
"command": "editor.action.formatDocument",
"when": "editorTextFocus"
},
{
"key": "cmd+k",
"command": "editor.action.nextSelectionMatchFindAction",
"when": "editorTextFocus"
},
{
"key": "cmd+shift+k",
"command": "editor.action.previousSelectionMatchFindAction",
"when": "editorTextFocus"
},
{
"key": "cmd+d",
"command": "editor.action.deleteLines",
"when": "editorTextFocus"
},
{
"key": "cmd+l",
"command": "workbench.action.gotoLine",
"when": "editorTextFocus"
},
{
"key": "cmd+alt+down",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus"
},
{
"key": "cmd+alt+up",
"command": "editor.action.copyLinesUpAction",
"when": "editorTextFocus"
}
// {
// "key": "cmd+shift+f",
// "command": "editor.action.format",
// "when": "editorTextFocus"
// },
// {
// "key": "cmd+alt+down",
// "command": "editor.action.copyLinesDownAction",
// "when": "editorTextFocus"
// },
// {
// "key": "cmd+alt+up",
// "command": "editor.action.copyLinesUpAction",
// "when": "editorTextFocus"
// },
// {
// "key": "alt+down",
// "command": "editor.action.moveLinesDownAction",
// "when": "editorTextFocus"
// },
// {
// "key": "alt+up",
// "command": "editor.action.moveLinesUpAction",
// "when": "editorTextFocus"
// },
// {
// "key": "cmd+d",
// "command": "editor.action.deleteLines",
// "when": "editorTextFocus"
// },
// {
// "key": "alt+shift+r",
// "command": "editor.action.rename",
// "when": "editorTextFocus"
// },
// {
// "key": "cmd+space",
// "command": "editor.action.triggerSuggest",
// "when": "editorTextFocus"
// },
// {
// "key": "f3",
// "command": "editor.action.goToDeclaration",
// "when": "editorTextFocus"
// },
// {
// "key": "cmd+1",
// "command": "editor.action.quickFix",
// "when": "editorTextFocus"
// },
// {
// "key": "cmd+shift+g",
// "command": "editor.action.referenceSearch.trigger",
// "when": "editorTextFocus"
// },
// {
// "key": "cmd+shift+t",
// "command": "workbench.action.showAllSymbols"
// },
// {
// "key": "cmd+l",
// "command": "workbench.action.gotoLine"
// },
// {
// "key": "cmd+w",
// "command": "workbench.action.closeActiveEditor"
// },
// {
// "key": "cmd+shift+s",
// "command": "workbench.action.files.saveAs"
// },
// {
// "key": "cmd+alt+s",
// "command": "workbench.action.files.saveAll"
// },
// {
// "key": "alt-left",
// "command": "workbench.action.navigateBack"
// },
// {
// "key": "alt-right",
// "command": "workbench.action.navigateForward"
// },
// {
// "key": "cmd+7",
// "command": "editor.action.commentLine"
// }
]
{
"window.zoomLevel": -1,
"editor.scrollBeyondLastLine": false,
"html.format.wrapAttributes": "force",
// "javascript.format.insertSpaceAfterCommaDelimiter": true,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment