techthoughts2
9/28/2018 - 8:51 PM

VSCode User Settings

Visual Studio Code User Settings that I currently use. Heavy focus on PowerShell, Python, AWS, and Azure.

{
    //USEFUL INFORMATION
    //https://code.visualstudio.com/docs/editor/settings-sync
    //https://github.com/tonsky/FiraCode/wiki/VS-Code-Instructions
    //https://github.com/microsoft/cascadia-code/blob/master/README.md
    //https://github.com/adam7/delugia-code/releases
    // @installed
    // @category:"themes"
    // @popular
    //SYNC SETTINGS
    // disable markdown auto link formatting
    "markdown.preview.linkify": false,
    "markdown-preview-enhanced.previewTheme": "github-dark.css",
    "settingsSync.ignoredSettings": [
        "aws.profile",
        "code-runner.executorMap",
        "code-runner.clearPreviousOutput",
        "code-runner.showExecutionMessage",
        "code-runner.ignoreSelection",
        "code-runner.saveFileBeforeRun",
    ],
    "settingsSync.ignoredExtensions": [
        "amazonwebservices.aws-toolkit-vscode",
        "aws-scripting-guy.cform",
        "danielthielking.aws-cloudformation-yaml",
        "kddejong.vscode-cfn-lint",
        "formulahendry.code-runner",
        "almenon.arepl",
        "ms-vscode-remote.remote-wsl",
        "ms-vscode-remote.remote-ssh",
        "ms-toolsai.jupyter",
        "ms-toolsai.jupyter-keymap",
        "ms-vscode.vscode-typescript-tslint-plugin",
        "ms-vscode-remote.remote-ssh-edit",
        "ms-python.python",
        "ms-python.vscode-pylance",
        "nobuhito.printcode",
        "hashicorp.terraform",
        "ms-dotnettools.csharp",
        "ms-dotnettools.vscode-dotnet-runtime",
        "xabikos.javascriptsnippets",
        "alexey-strakh.stackoverflow-search"
    ],
    //SPECIAL SETTINGS
    "github.copilot.enable": {
        "*": true,
        "yaml": true,
        "plaintext": false,
        "markdown": false,
        "powershell": true,
        "javascript": true,
        "jsonc": true,
        "python": true,
        "python3": true
    },
    "telemetry.telemetryLevel": "off",
    "markdown.extension.orderedList.autoRenumber": false,
    //SETTINGS CHANGES
    "breadcrumbs.enabled": false,
    "explorer.confirmDragAndDrop": false,
    "explorer.excludeGitIgnore": false,
    "extensions.autoUpdate": false, //currently locked to v2.4.4
    "git.confirmSync": false,
    "omnisharp.projectLoadTimeout": 120,
    "security.workspace.trust.untrustedFiles": "open",
    "workbench.editor.highlightModifiedTabs": true,
    "workbench.editor.titleScrollbarSizing": "large",
    "workbench.editorAssociations": {
        "*.ipynb": "jupyter-notebook"
    },
    "workbench.settings.editor": "json",
    "workbench.tree.indent": 15,
    //editor
    "editor.acceptSuggestionOnEnter": "on",
    "editor.accessibilitySupport": "off",
    "editor.autoClosingQuotes": "never",
    "editor.autoSurround": "never",
    "editor.bracketPairColorization.enabled": true,
    "editor.cursorBlinking": "expand",
    "editor.detectIndentation": false,
    "editor.fastScrollSensitivity": 6,
    // "editor.fontFamily": "Lucida Console",
    // "editor.fontFamily": "Fira Code",
    // "editor.fontFamily": "Fira Code Retina",
    // "editor.fontFamily": "Consolas",
    "editor.fontFamily": "'CaskaydiaCove NF','Delugia Mono Nerd Font','Cascadia Mono','Delugia Nerd Font','Cascadia Code','Consolas','Courier New','monospace'",
    "editor.fontLigatures": true,
    "editor.fontSize": 16,
    "editor.guides.indentation": true,
    "editor.guides.bracketPairs": true,
    "editor.guides.highlightActiveIndentation": true,
    "editor.inlineSuggest.enabled": true,
    "editor.insertSpaces": true,
    "editor.minimap.enabled": false,
    "editor.mouseWheelZoom": true,
    "editor.quickSuggestionsDelay": 1,
    "editor.renderWhitespace": "all",
    "editor.renderControlCharacters": true,
    "editor.suggestSelection": "first",
    "editor.snippetSuggestions":"inline",
    "editor.tabCompletion": "on",
    // zenMode - full screen editing changes
    "zenMode.centerLayout": false,
    "zenMode.fullScreen": true,
    "zenMode.hideLineNumbers": false,
    "window.title": "${activeEditorLong}",
    //files
    "files.trimTrailingWhitespace": true,
    "files.insertFinalNewline": true,
    "files.defaultLanguage": "powershell",
    "workbench.iconTheme": "material-icon-theme",
    "material-icon-theme.showWelcomeMessage": false,
    //TERMINAL
    "terminal.integrated.scrollback": 8000,
    "terminal.integrated.defaultProfile.windows": "PowerShell with Profile",
    "terminal.integrated.fontFamily": "'CaskaydiaCove NF','Delugia Mono Nerd Font','Cascadia Mono','Delugia Nerd Font','Cascadia Code','Consolas','Courier New','monospace'",
    "terminal.integrated.fontSize": 16,
    "terminal.integrated.profiles.windows": {
        "PowerShell": {
            "source": "PowerShell",
            "icon": "terminal-powershell"
        },
        "Command Prompt": {
            "path": [
                "${env:windir}\\Sysnative\\cmd.exe",
                "${env:windir}\\System32\\cmd.exe"
            ],
            "args": [],
            "icon": "terminal-cmd"
        },
        "Git Bash": {
            "source": "Git Bash"
        },
        "PowerShell with Profile": {
            "source": "PowerShell"
            // "args": [
            //     "-NoProfile"
            // ]
        },
        "PowerShell NoProfile": {
            "source": "PowerShell",
            "args": [
                "-NoProfile"
            ]
        },
        "Windows PowerShell": {
            "path": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
        },
        // "Python": {
        //     // "path": "C:\\Python39\\python.exe"
        // }
    },
    //LANGUAGE SPECIFIC CHANGES
    //PowerShell
    "powershell.codeFormatting.preset": "Stroustrup",
    "powershell.codeFormatting.ignoreOneLineBlock": false,
    "powershell.codeFormatting.autoCorrectAliases": true,
    "powershell.developer.editorServicesLogLevel": "Normal",
    "powershell.developer.featureFlags": [
        "PSReadLine"
    ],
    "powershell.powerShellAdditionalExePaths": {
        "PS7": "C:\\Program Files\\PowerShell\\7\\pwsh.exe",
        "PS5.1": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
    },
    "powershell.powerShellDefaultVersion": "PS7",
    "powershell.integratedConsole.showOnStartup": true,
    "powershell.integratedConsole.focusConsoleOnExecute": true,
    "powershell.pester.outputVerbosity": "Detailed",
    "powershell.pester.debugOutputVerbosity": "Detailed",
    "powershell.pester.useLegacyCodeLens": false,
    "[powershell]": {
        "files.encoding": "utf8bom",
        "files.autoGuessEncoding": true,
        "editor.formatOnSave": true,
        "editor.parameterHints.enabled": false,
        // "editor.wordSeparators": "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",
        "editor.wordSeparators": "`~!@#%^&*()-=+[{]}\\|;:'\",.<>/?"
        // "editor.semanticHighlighting.enabled": true
    },
    "powershell.promptToUpdatePowerShell": false,
    "powershell.startAutomatically": true,
    "powershell.scriptAnalysis.enable": true,
    //python
    "python.formatting.provider": "black",
    "python.formatting.blackArgs": [
        "--line-length=80"
    ],
    // "python.formatting.blackPath":"c:/python38/lib/site-packages/black",
    "python.linting.flake8Enabled": true,
    "python.linting.pylintEnabled": false,
    "python.linting.enabled": true,
    "python.testing.pytestEnabled": true,
    "python.testing.unittestEnabled": false,
    "[python]": {
        "editor.formatOnSave": true,
        "editor.insertSpaces": true,
        "editor.tabSize": 4
    },
    "python.testing.autoTestDiscoverOnSaveEnabled": false,
    "python.languageServer": "Pylance",
    "autoDocstring.docstringFormat": "sphinx",
    "autoDocstring.guessTypes": true,
    //csharp
    // "csharp.suppressDotnetInstallWarning": true,
    // typescript
    "typescript.format.enable": true,
    "[typescript]": {
        "editor.codeActionsOnSave": {
            "source.fixAll.eslint": "explicit"
        },
        "editor.formatOnSave": true
    },
    //plain
    "[plaintext]": {
        "editor.quickSuggestions": {
            "comments": "off",
            "strings": "off",
            "other": "off"
        }
    },
    "azureFunctions.projectLanguage": "PowerShell",
    "azureFunctions.projectRuntime": "~3",
    "azureFunctions.showTargetFrameworkWarning": true,
    //better comments
    "better-comments.tags": [
        {
            "tag": "!",
            "color": "#FF2D00",
            "strikethrough": false,
            "backgroundColor": "transparent"
        },
        {
            "tag": "?",
            "color": "#3498DB",
            "strikethrough": false,
            "backgroundColor": "transparent"
        },
        {
            "tag": "//",
            "color": "#474747",
            "strikethrough": true,
            "backgroundColor": "transparent"
        },
        {
            "tag": "todo",
            "color": "#FF8C00",
            "strikethrough": false,
            "backgroundColor": "transparent"
        },
        {
            "tag": "*",
            "color": "#98C379",
            "strikethrough": false,
            "backgroundColor": "transparent"
        }
    ],
    //bicep
    "[bicep]": {
        "editor.semanticHighlighting.enabled": true,
    },
    "editor.semanticTokenColorCustomizations": {
        "[]": {
            "enabled": true
        }
    },
    "cSpell.enabled": true,
    "cSpell.userWords": [
        "Blackbaud",
        "Blackbaudians",
        "Datacenter",
        "endregion",
        "Leleux",
        "runbook",
        "Sisko",
        "webportal",
        "webservice"
    ],
    //redhat
    "redhat.telemetry.enabled": false,
    //shell launcher
    "shellLauncher.shells.windows": [
        {
            "shell": "C:\\Windows\\system32\\cmd.exe",
            "label": "cmd"
        },
        {
            "shell": "C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe",
            "label": "PowerShell 5.1"
        },
        {
            "shell": "C:\\Program Files\\PowerShell\\7\\pwsh.exe",
            "label": "PowerShell 7"
        },
        {
            "shell": "C:\\Users\\jakew\\AppData\\Local\\Microsoft\\WindowsApps\\python.exe",
            "label": "Python310"
        }
    ],
    //yaml
    "yaml.validate": false,
    "yaml.format.singleQuote": true,
    "[yaml]": {
        "editor.defaultFormatter": "redhat.vscode-yaml"
    },
    "yaml.schemas": {
        "https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml"
    },
    "yaml.customTags": [
        "!And",
        "!If",
        "!Not",
        "!Equals sequence",
        "!Or",
        "!FindInMap sequence",
        "!Base64",
        "!Cidr",
        "!Ref",
        "!Sub",
        "!GetAtt",
        "!GetAZs",
        "!ImportValue",
        "!Select sequence",
        "!Split",
        "!Join sequence",
        "!And sequence",
        "!If sequence",
        "!Not sequence",
        "!Equals",
        "!Or sequence",
        "!FindInMap",
        "!Join",
        "!Sub sequence",
        "!ImportValue sequence",
        "!Select",
        "!Split sequence",
        "!ENV scalar",
        "!ENV sequence",
        "tag:yaml.org,2002:python/name:materialx.emoji.to_svg",
        "tag:yaml.org,2002:python/name:materialx.emoji.twemoji",
        "tag:yaml.org,2002:python/name:pymdownx.superfences.fence_code_format"
    ],
    "json.schemas": [],
    "remote.SSH.remotePlatform": {
        "10.0.3.100": "windows",
        "cloud9": "linux",
        "jwmdev": "linux"
    },
    "cSpell.enableFiletypes": [
        "!css",
        "!javascript",
        "!json",
        "!jsonc",
        "!markdown",
        "!yaml",
        "powershell"
    ],
    "editor.suggest.showMethods": true,
    "editor.suggest.preview": true,
    "workbench.colorTheme": "Dark+ Material",
    "[json]": {
        "editor.defaultFormatter": "vscode.json-language-features"
    },
    "[markdown]": {
        "editor.defaultFormatter": "DavidAnson.vscode-markdownlint"
    },
    "hediet.vscode-drawio.resizeImages": null,
    "github.copilot.editor.enableAutoCompletions": true,
    "editor.inlineSuggest.suppressSuggestions": true,
    "coverage-gutters.showLineCoverage": true

}