VS Code Extensions

Tips

  • Regular Expression searches accept capture groups:
# search:
<li><a href="(.*?)">(.*?)</a></li>
# replace:
[$2]($1)

Extensions and Configuration

General
  • Python setup
  • Remove annoying html file handler: sudo rm /usr/share/applications/code-url-handler.desktop
  • My favourite themes:
    • Day/Light: Solarized Light
    • Night/Dark: GitHub Theme / Monokai
Extensions - My personal must-haves
Extensions - Other useful ones
My Settings
{
    "workbench.startupEditor": "newUntitledFile",
    "editor.minimap.renderCharacters": false,
    "editor.minimap.size": "fit",
    "editor.minimap.maxColumn": 60,
    "editor.minimap.scale": 1,
    "editor.fontFamily": "'monospace', monospace, 'Droid Sans Mono', 'Droid Sans Fallback'",
    "editor.renderWhitespace": "boundary",
    "editor.wordWrap": "on",
    "editor.rulers": [
        120
    ],
    "editor.wordWrapColumn": 120,
    "terminal.integrated.fontFamily": "'monospace'",
    "terminal.integrated.lineHeight": 1,
    "files.exclude": {
        "**/.git": true,
        "**/.svn": true,
        "**/.hg": true,
        "**/.tx": true,
        "**/.idea": true,
        "**/CVS": true,
        "**/.DS_Store": true,
        "**/*.pyc": true,
        "**/.gitattributes": true,
        "**/.github": true,
        "**/.mypy_cache": true,
        "**/__pycache__": true,
        "**/.vscode": true,
        "**/.cache": true,
        "**/.pytest_cache": true,
        "**/.classpath": true,
        "**/.project": true,
        "**/.settings": true,
        "**/.factorypath": true
    },
    "files.trimFinalNewlines": true,
    "files.trimTrailingWhitespace": true,
    "explorer.confirmDelete": false,
    "telemetry.telemetryLevel": "off",
    "editor.colorDecorators": false,
    // "format": "beautify"
    // "format": "keep-breaks" (minimize multiline)
    // "format": "" (empty to minimize)
    "CleanCSS.options": {
        "format": ""
    },
    "files.associations": {
        "*.content": "html",
        "*.template": "html"
    },
    "breadcrumbs.enabled": true,
    "python.linting.enabled": true,
    "python.linting.pycodestyleEnabled": true,
    "python.linting.pycodestyleArgs": ["--max-line-length=120"],
    "python.linting.flake8Enabled": true,
    "python.linting.flake8Args": ["--max-line-length=120"],
    "python.linting.mypyEnabled": true,
    "python.linting.pylintEnabled": false,
    "editor.copyWithSyntaxHighlighting": false,
    "window.titleBarStyle": "custom",
    "editor.formatOnSave": false,
    "editor.gotoLocation.multipleDefinitions": "goto",
    "workbench.editor.enablePreviewFromQuickOpen": false,
    "workbench.editor.wrapTabs": true,
    "workbench.editor.tabSizing": "shrink",
    "workbench.editor.decorations.colors": false,
    "workbench.editor.decorations.badges": false,
    "[python]": {},
    "[markdown]": {
        "files.trimTrailingWhitespace": false
    },
    "extensions.ignoreRecommendations": false,
    "terminal.integrated.gpuAcceleration": "canvas",
    "terminal.integrated.fontSize": 11,
    "editor.suggestSelection": "first",
    "markdown.preview.doubleClickToSwitchToEditor": false,
    "cSpell.minWordLength": 4,
    "cSpell.language": "en-GB",
    "cSpell.enableFiletypes": [
        "markdown",
    ],
    "cSpell.enabledLanguageIds": [
        "markdown",
    ],
    "python.languageServer": "Default",
    "workbench.editorAssociations": {
        "*.ipynb": "jupyter-notebook"
    },
    "terminal.integrated.scrollback": 5000,
    "workbench.editor.untitled.hint": "hidden",
    "notebook.cellToolbarLocation": {
        "default": "right",
        "jupyter-notebook": "left"
    },
    "editor.fontSize": 12,
    "security.workspace.trust.untrustedFiles": "open",
    "editor.guides.bracketPairs": true,
    "editor.bracketPairColorization.enabled": true,
    "window.zoomLevel": 1,
    "editor.hover.above": false,
    "[javascript]": {
      "editor.defaultFormatter": "esbenp.prettier-vscode",
      "editor.formatOnSave": true
    },
    "[typescript]": {
      "editor.defaultFormatter": "esbenp.prettier-vscode",
      "editor.formatOnSave": true
    },
    "[css]": {
        "editor.defaultFormatter": "aeschli.vscode-css-formatter"
    },
    "[html]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "editor.tabSize": 2,
    "[json]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "window.openFoldersInNewWindow": "on",
    "files.watcherExclude": {
        "**/.git/objects/**": true,
        "**/.git/subtree-cache/**": true,
        "**/node_modules/*/**": true
    },
    "workbench.preferredDarkColorTheme": "Solarized Dark",
    "workbench.preferredLightColorTheme": "Solarized Light",
    "editor.inlineSuggest.enabled": true,
    "workbench.editor.enablePreview": false,
    "typescript.preferences.quoteStyle": "double",
    "javascript.preferences.quoteStyle": "double",
    "eslint.options": {
        "rules": {
            "quotes": "double"
        }
    },
    "javascript.format.enable": false,
    "typescript.format.enable": false,
    "eslint.format.enable": true,
    "eslint.lintTask.enable": true,
    "editor.codeActionsOnSave": {
        "source.fixAll": true
    },
    "eslint.workingDirectories": [
        {
        "mode": "auto"
        }
    ],
    "eslint.validate": [
        "javascript",
        "typescript",
        "javascriptreact",
        "typescriptreact"
    ],
    "github.copilot.enable": {
        "*": true,
        "yaml": false,
        "plaintext": false,
        "markdown": false
    },
    "update.mode": "manual",
    "workbench.sideBar.location": "right",
    "workbench.colorTheme": "GitHub Dark Dimmed",
    "bazel.buildifierFixOnFormat": true,
    "bazel.enableCodeLens": true,
    "bazel.queriesShareServer": true,
    "editor.linkedEditing": true
}
VS Code Extensions. Author:

Comment