Skip to content

Instantly share code, notes, and snippets.

@esparkman
Created August 15, 2020 03:37
Show Gist options
  • Save esparkman/ab8b1fec988ef23d640f3004c29cb88d to your computer and use it in GitHub Desktop.
Save esparkman/ab8b1fec988ef23d640f3004c29cb88d to your computer and use it in GitHub Desktop.
New VS Code Settings
[
// Panels
{ "key": "ctrl+k ctrl+e", "command": "workbench.view.explorer" },
{ "key": "ctrl+k ctrl+g", "command": "workbench.view.scm" },
{ "key": "ctrl+k ctrl+d", "command": "workbench.view.debug" },
{ "key": "ctrl+k ctrl+x", "command": "workbench.extensions.action.showInstalledExtensions" },
{ "key": "ctrl+k ctrl+b", "command": "workbench.action.toggleSidebarVisibility" },
{ "key": "ctrl+e", "command": "workbench.action.focusActiveEditorGroup" },
{ "key": "ctrl+t", "command": "workbench.action.terminal.toggleTerminal" },
{
"key": "ctrl+k ctrl+=",
"command": "toggle",
"when": "editorTextFocus",
"args": {
"id": "fontSize",
"value": [
{ "editor.fontSize": 15, "editor.lineHeight": 45 },
{ "editor.fontSize": 12, "editor.lineHeight": 0 }
]
}
},
// File Explorer
{
"key": "ctrl+d",
"command": "duplicate.execute",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
},
{
"key": "ctrl+n",
"command": "explorer.newFile",
"when": "explorerViewletVisible && filesExplorerFocus && !inputFocus"
},
{
"key": "ctrl+shift+n",
"command": "explorer.newFolder",
"when": "explorerViewletVisible && filesExplorerFocus && !inputFocus"
},
{
"key": "ctrl+r",
"command": "workbench.files.action.refreshFilesExplorer",
"when": "explorerViewletVisible && filesExplorerFocus && !inputFocus"
},
// Fold/Unfole
{
"key": "ctrl+shift+[",
"command": "editor.fold",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+]",
"command": "editor.unfold",
"when": "editorTextFocus"
},
// Line Manipulation
{
"key": "ctrl+l",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus"
},
{
"key": "ctrl+j",
"command": "editor.action.joinLines",
"when": "editorTextFocus"
},
// Multi-Cursor
{
"key": "ctrl+backspace",
"command": "editor.action.moveSelectionToPreviousFindMatch",
"when": "editorTextFocus && editorHasMultipleSelections"
},
{
"key": "ctrl+k ctrl+d",
"command": "editor.action.moceSelectionToNextFindMatch",
"when": "editorTextFocus && editorHasMultipleSelections"
},
{
"key": "ctrl+right",
"command": "editor.action.insertCursorAtEndOfEachLineSelected",
"when": "editorTextFocus && editorHasSelection"
},
// Emmet!
{
"key": "ctrl+m ctrl+i",
"command": "editor.emmet.action.balanceIn",
"when": "editorTextFocus"
},
{
"key": "ctrl+m ctrl+o",
"command": "editor.emmet.action.balanceOut",
"when": "editorTextFocus"
},
{
"key": "ctrl+m ctrl+w",
"command": "editor.emmet.action.wrapWithAbbreviation",
"when": "editorTextFocus"
},
{
"key": "ctrl+m ctrl+e",
"command": "editor.action.smartSelect.expand",
"when": "editorTextFocus"
},
{
"key": "ctrl+m ctrl+r",
"command": "editor.emmet.action.updateTag",
"when": "editorTextFocus"
},
{
"key": "ctrl+m ctrl+backspace",
"command": "editor.emmet.action.removeTag",
"when": "editorTextFocus"
},
// Split Panels
{
"key": "alt+w",
"command": "workbench.action.joinAllGroups",
"when": "editorFocus"
},
{
"key": "alt+n",
"command": "workbench.action.splitEditor",
"when": "editorFocus"
},
{
"key": "alt+l",
"command": "workbench.action.navigateRight",
"when": "editorFocus"
},
{
"key": "alt+h",
"command": "workbench.action.navigateLeft",
"when": "editorFocus"
},
{
"key": "alt+=",
"command": "workbench.action.increaseViewSize",
"when": "editorFocus"
},
{
"key": "alt+-",
"command": "workbench.action.decreaseViewSize",
"when": "editorFocus"
},
// Terminal Split Panes
{
"key": "alt+n",
"command": "workbench.action.terminal.split",
"when": "terminalFocus"
},
{
"key": "alt+l",
"command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus"
},
{
"key": "alt+h",
"command": "workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus"
},
{
"key": "alt+w",
"command": "workbench.action.terminal.kill",
"when": "terminalFocus"
},
// amVim Finder Fix
{
"key": "enter",
"command": "editor.action.nextMatchFindAction",
"when": "findWidgetVisible"
},
{
"key": "shift+enter",
"command": "editor.action.previousMatchFindAction",
"when": "findWidgetVisible"
},
// Project Switching
{
"key": "ctrl+;",
"command": "workbench.action.switchWindow",
"when": "config.simple-project-switcher.present"
},
{
"key": "ctrl+alt+right",
"command": "workbench.action.showNextWindowTab",
},
{
"key": "ctrl+alt+left",
"command": "workbench.action.showPreviousWindowTab",
},
// Intellisense
{
"key": "ctrl+r",
"command": "workbench.action.gotoSymbol",
},
{
"key": "ctrl+shift+r",
"command": "workbench.action.showAllSymbols"
},
{
"key": "ctrl+k ctrl+enter",
"command": "editor.action.goToDeclaration",
"when": "editorTextFocus"
},
{
"key": "ctrl+k ctrl+i",
"command": "namespaceResolver.import"
}
]
{
// Better Defaults
"editor.copyWithSyntaxHighlighting": false,
"diffEditor.ignoreTrimWhitespace": false,
"editor.emptySelectionClipboard": false,
"workbench.editor.enablePreview": false,
"window.newWindowDimensions": "inherit",
"editor.multiCursorModifier": "ctrlCmd",
"files.trimTrailingWhitespace": true,
"editor.snippetSuggestions": "top",
"editor.detectIndentation": false,
"window.nativeFullScreen": false,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
// Hide all the things
"workbench.activityBar.visible": false,
"workbench.sideBar.location": "right",
"workbench.statusBar.visible": false,
"workbench.editor.showTabs": false,
"editor.renderIndentGuides": false,
"editor.minimap.enabled": false,
"editor.lineNumbers": "on",
// Silence all the things
"editor.codeLens": false,
"breadcrumbs.enabled": false,
"scm.diffDecorations": "none",
"editor.hover.enabled": false,
"editor.matchBrackets": "never",
"workbench.tips.enabled": false,
"editor.colorDecorators": false,
"git.decorations.enabled": false,
"workbench.startupEditor": "none",
"editor.lightbulb.enabled": false,
"editor.selectionHighlight": false,
"editor.overviewRulerBorder": false,
"editor.renderLineHighlight": "none",
"editor.occurrencesHighlight": false,
"problems.decorations.enabled": false,
"editor.renderControlCharacters": false,
"editor.hideCursorInOverviewRuler": true,
"editor.gotoLocation.multipleReferences": "goto",
"editor.gotoLocation.multipleDeclarations": "goto",
"editor.gotoLocation.multipleDefinitions": "goto",
"workbench.editor.enablePreviewFromQuickOpen": false,
"editor.gotoLocation.multipleImplementations": "goto",
"editor.gotoLocation.multipleTypeDefinitions": "goto",
// I like the shinies
"workbench.colorTheme": "Palenight Italic",
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.fontSize": 12,
"editor.lineHeight": 0,
"editor.suggestFontSize": 14,
"editor.suggestLineHeight": 28,
"terminal.integrated.fontSize": 15,
"terminal.integrated.lineHeight": 1.5,
// Find all the things
"search.useIgnoreFiles": false,
"search.exclude": {
"**/package-lock.json": true,
"**/yarn-lock.json": true,
"**/Gemfile.lock": true,
"**/dist": true,
"**/build": true,
"**/node_ignore": true
},
"window.zoomLevel": 0,
"window.nativeTabs": true,
"simple-project-switcher.directory": "/home/evansparkman/Development",
// Prettier
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"prettier.requireConfig": true,
"prettier.useEditorConfig": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment