Skip to content

Instantly share code, notes, and snippets.

@arjendk
Created November 8, 2021 16:18
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 arjendk/1ff197d779e2dbb764be3ace7463bc2e to your computer and use it in GitHub Desktop.
Save arjendk/1ff197d779e2dbb764be3ace7463bc2e to your computer and use it in GitHub Desktop.
My VSCode settings
// Place your key bindings in this file to override the defaults
[
// Workbench navigation
/* {
"key": "ctrl+k ctrl+e",
"command": "workbench.view.explorer",
"when": "viewContainer.workbench.view.explorer.enabled"
},
{
"key": "ctrl+shift+e",
"command": "-workbench.view.explorer",
"when": "viewContainer.workbench.view.explorer.enabled"
},
{
"key": "ctrl+k ctrl+x",
"command": "workbench.view.extensions",
"when": "viewContainer.workbench.view.extensions.enabled"
},
{
"key": "ctrl+shift+x",
"command": "-workbench.view.extensions",
"when": "viewContainer.workbench.view.extensions.enabled"
},
{
"key": "ctrl+k ctrl+d",
"command": "workbench.view.debug",
"when": "viewContainer.workbench.view.debug.enabled"
},
{
"key": "ctrl+shift+d",
"command": "-workbench.view.debug",
"when": "viewContainer.workbench.view.debug.enabled"
},
{
"key": "ctrl+k ctrl+g",
"command": "workbench.view.scm",
"when": "workbench.scm.active"
},
{
"key": "ctrl+shift+g",
"command": "-workbench.view.scm",
"when": "workbench.scm.active"
},
*/
{
"key": "ctrl+k ctrl+p",
"command": "workbench.actions.view.problems",
"when": "workbench.panel.markers.view.active"
},
{
"key": "ctrl+shift+m",
"command": "-workbench.actions.view.problems",
"when": "workbench.panel.markers.view.active"
},
{
"key": "ctrl+e",
"command": "workbench.action.focusActiveEditorGroup"
},
{
"key": "ctrl+t",
"command": "workbench.action.terminal.toggleTerminal",
"when": "terminal.active"
},
{
"key": "ctrl+`",
"command": "-workbench.action.terminal.toggleTerminal",
"when": "terminal.active"
},
// Comments
{
"key": "ctrl+shift+/",
"command": "editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+a",
"command": "-editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+k ctrl+c",
"command": "-editor.action.addCommentLine",
"when": "editorTextFocus && !editorReadonly"
},
// Code navigation
{
"key": "alt+right",
"command": "workbench.action.navigateForward"
},
{
"key": "ctrl+shift+-",
"command": "-workbench.action.navigateForward"
},
{
"key": "alt+left",
"command": "workbench.action.navigateBack"
},
{
"key": "ctrl+alt+-",
"command": "-workbench.action.navigateBack"
},
// Other
{
"key": "ctrl+shift+alt+t",
"command": "extension.toggleTheme"
},
// Zooming
{
"key": "ctrl+shift+=",
"command": "-workbench.action.zoomIn"
},
{
"key": "ctrl+=",
"command": "-workbench.action.zoomIn"
},
{
"key": "ctrl+-",
"command": "-workbench.action.zoomOut"
},
{
"key": "ctrl+=",
"command": "editor.action.fontZoomIn"
},
{
"key": "ctrl+-",
"command": "editor.action.fontZoomOut"
},
{
"key": "ctrl+shift+alt+=",
"command": "editor.action.fontZoomReset"
},
// Prevent accidental quit
{
"key": "ctrl+q",
"command": "-workbench.action.quit"
},
// Line manipulation
{
"key": "ctrl+l",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+j",
"command": "editor.action.joinLines"
},
// Multiple cursors
{
"key": "ctrl+shift+d",
"command": "editor.action.moveSelectionToNextFindMatch",
"when": "editorFocus && editorHasMultipleSelections"
},
{
"key": "ctrl+k ctrl+d",
"command": "-editor.action.moveSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "ctrl+backspace",
"command": "editor.action.moveSelectionToPreviousFindMatch",
"when": "editorFocus && editorHasMultipleSelections"
},
{
"key": "ctrl+right",
"command": "editor.action.insertCursorAtEndOfEachLineSelected",
"when": "editorHasSelection && editorTextFocus"
},
{
"key": "shift+alt+i",
"command": "-editor.action.insertCursorAtEndOfEachLineSelected",
"when": "editorTextFocus"
},
// Window splitting
{
"key": "ctrl+alt+right",
"command": "-workbench.action.moveEditorToNextGroup"
},
{
"key": "ctrl+alt+left",
"command": "-workbench.action.moveEditorToPreviousGroup"
},
{
"key": "ctrl+alt+right",
"command": "workbench.action.focusNextGroup"
},
{
"key": "ctrl+alt+left",
"command": "workbench.action.focusPreviousGroup"
},
{
"key": "alt+w",
"command": "workbench.action.joinAllGroups",
"when": "editorFocus"
},
{
"key": "alt+n",
"command": "workbench.action.splitEditor",
"when": "editorFocus"
},
{
"key": "ctrl+\\",
"command": "-workbench.action.splitEditor"
},
{
"key": "alt+=",
"command": "workbench.action.increaseViewSize",
"when": "editorFocus"
},
{
"key": "alt+-",
"command": "workbench.action.decreaseViewSize",
"when": "editorFocus"
},
// Terminal splitting
{
"key": "alt+n",
"command": "workbench.action.terminal.split",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "ctrl+shift+5",
"command": "-workbench.action.terminal.split",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "alt+w",
"command": "workbench.action.terminal.kill",
"when": "terminalFocus"
},
{
"key": "ctrl+m ctrl+w",
"command": "editor.emmet.action.wrapWithAbbreviation",
"when": "editorTextFocus"
},
{
"key": "ctrl+m ctrl+m",
"command": "editor.emmet.action.matchTag",
"when": "editorTextFocus"
},
{
"command": "editor.action.jumpToBracket"
},
{
"key": "ctrl+m ctrl+r",
"command": "editor.emmet.action.updateTag",
"when": "editorTextFocus"
},
{
"key": "ctrl+m ctrl+backspace",
"command": "editor.emmet.action.removeTag",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+m",
"command": "editor.action.jumpToBracket",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+\\",
"command": "-editor.action.jumpToBracket",
"when": "editorTextFocus"
},
// Extension: Project Manager
{
"key": "ctrl+;",
"command": "projectManager.listProjectsNewWindow"
},
]
{
// Hide a lot of stuff
"explorer.openEditors.visible": 0,
"window.menuBarVisibility": "toggle",
"workbench.activityBar.visible": false,
"workbench.editor.showTabs": false,
// "workbench.statusBar.visible": false,
"editor.minimap.enabled": false,
// Workbench appearance & settings
"window.zoomLevel": 0.6, // laptop
// "window.zoomLevel": 1.3, // groot scherm
"terminal.integrated.fontSize": 12,
"debug.console.fontSize": 12,
"debug.console.fontFamily": "sans",
"workbench.sideBar.location": "right",
"workbench.startupEditor": "none",
"window.newWindowDimensions": "offset",
"workbench.colorTheme": "Atom One Dark",
"workbench.preferredLightColorTheme": "Atom One Light",
"workbench.preferredDarkColorTheme": "Atom One Dark",
"workbench.iconTheme": "material-icon-theme",
// Editor settings
"editor.copyWithSyntaxHighlighting": false,
"editor.emptySelectionClipboard": false,
"editor.snippetSuggestions": "top",
"editor.detectIndentation": true,
"editor.cursorStyle": "line",
"editor.cursorWidth": 3,
// "editor.cursorBlinking": "solid",
"workbench.editor.enablePreview": false,
"breadcrumbs.enabled": false,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"diffEditor.ignoreTrimWhitespace": false,
"diffEditor.renderSideBySide": false,
"editor.fontSize": 13,
"editor.formatOnType": true,
"editor.fontFamily": "Fira Code, Cascadia Mono", // https://github.com/tonsky/FiraCode
"editor.fontLigatures": true,
"files.associations": {
"*.ascx": "html" // ASP.NET controls
},
"files.autoSave": "onFocusChange",
"editor.matchBrackets": "near",
"workbench.tips.enabled": false,
// "editor.selectionHighlight": false,
// "editor.overviewRulerBorder": false,
"editor.renderLineHighlight": "none",
"editor.occurrencesHighlight": false,
"editor.linkedEditing": true,
// Theme customizations
"workbench.colorCustomizations": {
"[Atom One Dark]": {
// "editorBracketMatch.background": "#5d8cff",
"editorBracketMatch.border": "#5d8cff",
"editorBracketMatch.background": "#3E4451",
},
},
"editor.tokenColorCustomizations": {
"[Atom One Light]": {
"strings": {
"foreground": "#bbbb00",
"fontStyle": "bold"
},
"comments": {
"fontStyle": ""
}
},
"[Atom One Dark]": {
"strings": {
"foreground": "#bbbb00",
// "fontStyle": "bold"
},
"comments": {
"fontStyle": ""
}
}
},
// Don't track me
"telemetry.enableTelemetry": false,
"telemetry.enableCrashReporter": false,
"workbench.enableExperiments": false,
"workbench.settings.enableNaturalLanguageSearch": false,
// Other settings
"update.showReleaseNotes": true,
"update.mode": "start",
"screencastMode.onlyKeyboardShortcuts": true,
"screencastMode.verticalOffset": 5,
"debug.console.closeOnEnd": true,
// Extensions: Bookmarks & Numbered bookmarks
"numberedBookmarks.navigateThroughAllFiles": "allowDuplicates",
// Extension: Project Manager
"remote.extensionKind": {
"alefragnani.project-manager": [
"workspace"
]
},
"projectManager.git.baseFolders": [
"~/Develop/"
],
// Extension: TODO Tree
"todo-tree.general.tags": [
"BUG",
"HACK",
"FIXME",
"TODO",
"XXX",
"VRAAG"
],
// Extension: Path Intellisense
"typescript.suggest.paths": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment