Skip to content

Instantly share code, notes, and snippets.

@tsmarvin
Last active June 8, 2023 04:15
Show Gist options
  • Select an option

  • Save tsmarvin/4eb499be38bcd62fe8c33b7827b21b19 to your computer and use it in GitHub Desktop.

Select an option

Save tsmarvin/4eb499be38bcd62fe8c33b7827b21b19 to your computer and use it in GitHub Desktop.
VSCode Settings

VSCode Settings

These are my VSCode settings! The extensions I use are listed in the comment block at the top of the settings file.

  1. The VSCode settings.json file usually lives:
    • Windows Default: %appdata%\Code\User\settings.json
    • Portable: {PortableVSCodeRoot}\data\user-data\User\settings.json
  2. The VSCode keybindings.json file usually lives:
    • Windows Default: %appdata%\Code\User\keybindings.json
    • Portable: {PortableVSCodeRoot}\data\user-data\User\keybindings.json
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+shift+f5",
"command": "PowerShell.RestartSession",
"when": "inDebugMode == false"
},
{
"key": "alt+shift+s",
"command": "PowerShell.InvokeRegisteredEditorCommand",
"args": { "commandName": "ConvertTo-SplatExpression" },
"when": "editorLangId == 'powershell'"
}
]
MIT License
Copyright (c) 2022 Taylor Marvin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
{
// Extensions:
// C#: https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp
// Docker: https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker
// Easy Snippet: https://marketplace.visualstudio.com/items?itemName=inu1255.easy-snippet
// Error Lens: https://marketplace.visualstudio.com/items?itemName=usernamehw.errorlens
// GistPad: https://marketplace.visualstudio.com/items?itemName=vsls-contrib.gistfs
// GitHub Pull Requests: https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github
// GitHub Repositories: https://marketplace.visualstudio.com/items?itemName=GitHub.remotehub
// Gremlins: https://marketplace.visualstudio.com/items?itemName=nhoizey.gremlins
// indent-rainbow: https://marketplace.visualstudio.com/items?itemName=oderwat.indent-rainbow
// Insert Unicode: https://marketplace.visualstudio.com/items?itemName=brunnerh.insert-unicode
// PostgreSQL: https://marketplace.visualstudio.com/items?itemName=ms-ossdata.vscode-postgresql
// PowerShell: https://marketplace.visualstudio.com/items?itemName=ms-vscode.PowerShell
// Regexp Explain: https://marketplace.visualstudio.com/items?itemName=LouisWT.regexp-preview
// Remote Development: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack
// Rust: https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer
// Sort JSON objects: https://marketplace.visualstudio.com/items?itemName=richie5um2.vscode-sort-json
"debug.inlineValues": "on",
"diffEditor.ignoreTrimWhitespace": true,
"editor.bracketPairColorization.enabled": true,
"editor.detectIndentation": true,
"editor.fontSize": 16,
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "modifications",
"editor.guides.bracketPairs": true,
"editor.guides.bracketPairsHorizontal": true,
"editor.guides.highlightActiveIndentation": true,
"editor.guides.indentation": true,
"editor.hover.above": false,
"editor.inlineSuggest.enabled": true,
"editor.insertSpaces": false,
"editor.largeFileOptimizations": false,
"editor.maxTokenizationLineLength": 25000,
"editor.minimap.maxColumn": 50,
"editor.multiCursorLimit": 25000,
"editor.multiCursorModifier": "ctrlCmd",
"editor.renderFinalNewline": "off",
"editor.renderWhitespace": "all",
"editor.rulers": [ 115, 120 ],
"editor.semanticTokenColorCustomizations": {
"[Default Dark+]": {
"enabled": true,
"rules": { "parameter": "#ffffffc1" }
}
},
"editor.snippetSuggestions": "bottom",
"editor.tabCompletion": "on",
"editor.unicodeHighlight.ambiguousCharacters": false,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts",
"*.jsx": "${capture}.js",
"*.ps1": "${capture}.tests.ps1",
"*.ts": "${capture}.js",
"*.tsx": "${capture}.ts",
"package.json": "package-lock.json, yarn.lock, pnpm-lock.yaml",
"tsconfig.json": "tsconfig.*.json"
},
"extensions.ignoreRecommendations": true,
"files.defaultLanguage": "powershell",
"files.hotExit": "onExitAndWindowClose",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"gistpad.scratchNotes.show": false,
"git.autofetch": true,
"git.autoRepositoryDetection": "openEditors",
"git.confirmSync": false,
"git.decorations.enabled": true,
"git.enableCommitSigning": true,
"git.enableSmartCommit": true,
"git.ignoreMissingGitWarning": true,
"git.postCommitCommand": "push",
"git.requireGitUserConfig": true,
"git.supportCancellation": true,
"indentRainbow.colors": [
"rgba(0, 255, 0, 0.08)",
"rgba(0, 255, 255, 0.08)",
"rgba(0, 0, 255, 0.08)",
"rgba(255, 0, 255, 0.08)",
"rgba(255, 0, 128, 0.18)",
"rgba(255, 128, 0, 0.18)"
],
"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"omnisharp.enableEditorConfigSupport": true,
"omnisharp.organizeImportsOnFormat": true,
"[powershell]": {
"debug.saveBeforeStart": "nonUntitledEditorsInActiveGroup",
"editor.defaultFormatter": "ms-vscode.powershell",
"editor.semanticHighlighting.enabled": false,
"editor.wordSeparators": "`~!@#$%^&*()=+[{]}\\|;:'\",.<>/?"
},
"powershell.codeFormatting.addWhitespaceAroundPipe": true,
"powershell.codeFormatting.alignPropertyValuePairs": true,
"powershell.codeFormatting.autoCorrectAliases": true,
"powershell.codeFormatting.avoidSemicolonsAsLineTerminators": true,
"powershell.codeFormatting.ignoreOneLineBlock": true,
"powershell.codeFormatting.newLineAfterCloseBrace": true,
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationForFirstPipeline",
"powershell.codeFormatting.preset": "OTBS",
"powershell.codeFormatting.trimWhitespaceAroundPipe": true,
"powershell.codeFormatting.useConstantStrings": true,
"powershell.codeFormatting.useCorrectCasing": true,
"powershell.codeFormatting.whitespaceAfterSeparator": true,
"powershell.codeFormatting.whitespaceAroundOperator": true,
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true,
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
"powershell.codeFormatting.whitespaceBetweenParameters": true,
"powershell.codeFormatting.whitespaceInsideBrace": true,
"powershell.debugging.createTemporaryIntegratedConsole": true,
"powershell.integratedConsole.showOnStartup": false,
"powershell.integratedConsole.suppressStartupBanner": true,
"powershell.pester.useLegacyCodeLens": false,
"powershell.powerShellDefaultVersion": "PowerShell (x64)",
"powershell.promptToUpdatePowerShell": false,
"security.workspace.trust.enabled": false,
"security.workspace.trust.startupPrompt": "never",
"telemetry.telemetryLevel": "off",
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.cursorStyle": "line",
"terminal.integrated.defaultProfile.windows": "PowerShell",
"terminal.integrated.fontSize": 16,
"terminal.integrated.scrollback": 9999,
"terminal.integrated.tabs.location": "left",
"update.enableWindowsBackgroundUpdates": false,
"window.restoreWindows": "preserve",
"workbench.activityBar.visible": true,
"workbench.colorCustomizations": {
"editorBracketHighlight.foreground1": "#00ff00",
"editorBracketHighlight.foreground2": "#00ffff",
"editorBracketHighlight.foreground3": "#0000ff",
"editorBracketHighlight.foreground4": "#ff00ff",
"editorBracketHighlight.foreground5": "#ff0080",
"editorBracketHighlight.foreground6": "#ff8000",
"editorBracketHighlight.unexpectedBracket.foreground": "#ff0000",
"editorBracketPairGuide.activeBackground1": "#00ff00",
"editorBracketPairGuide.activeBackground2": "#00ffff",
"editorBracketPairGuide.activeBackground3": "#0000ff",
"editorBracketPairGuide.activeBackground4": "#ff00ff",
"editorBracketPairGuide.activeBackground5": "#ff0080",
"editorBracketPairGuide.activeBackground6": "#ff8000",
"editorBracketPairGuide.background1": "#007000",
"editorBracketPairGuide.background2": "#007070",
"editorBracketPairGuide.background3": "#000070",
"editorBracketPairGuide.background4": "#700070",
"editorBracketPairGuide.background5": "#700038",
"editorBracketPairGuide.background6": "#703800",
"errorLens.errorBackground": "#e4545410",
"errorLens.errorForeground": "#ff646440",
"errorLens.errorMessageBackground": "#e4545405",
"errorLens.warningBackground": "#ff942f10",
"errorLens.warningForeground": "#fa973a70",
"errorLens.warningMessageBackground": "#fff00005",
"terminal.ansiBlack": "#000000",
"terminal.ansiBlue": "#2472c8",
"terminal.ansiBrightBlack": "#666666",
"terminal.ansiBrightBlue": "#569cd6",
"terminal.ansiBrightCyan": "#9cdcfe",
"terminal.ansiBrightGreen": "#b5cea8",
"terminal.ansiBrightMagenta": "#daadd6",
"terminal.ansiBrightRed": "#f14c4c",
"terminal.ansiBrightWhite": "#e5e5e5",
"terminal.ansiBrightYellow": "#DCDCAA",
"terminal.ansiCyan": "#11a8cd",
"terminal.ansiGreen": "#6a9955",
"terminal.ansiMagenta": "#C586C0",
"terminal.ansiRed": "#cd3131",
"terminal.ansiWhite": "#e5e5e5",
"terminal.ansiYellow": "#CE9178",
"terminal.background": "#1E1E1E",
"terminal.foreground": "#D4D4D4"
},
"workbench.colorTheme": "Default Dark+",
"workbench.editor.decorations.badges": true,
"workbench.editor.decorations.colors": true,
"workbench.editor.highlightModifiedTabs": true,
"workbench.editor.scrollToSwitchTabs": true,
"workbench.editor.tabSizing": "shrink",
"workbench.editor.wrapTabs": true,
"workbench.sideBar.location": "right",
"workbench.startupEditor": "newUntitledFile"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment