Skip to content

Instantly share code, notes, and snippets.

@LuisPalacios
Last active August 29, 2024 06:31
Show Gist options
  • Save LuisPalacios/fbc8f8ed1e95058efae6f3c4c57594a6 to your computer and use it in GitHub Desktop.
Save LuisPalacios/fbc8f8ed1e95058efae6f3c4c57594a6 to your computer and use it in GitHub Desktop.
VSCode preferences settings.json

VSCode

VSCode global preferences user settings.json

This is the generic Settings file that I typically use. As I'm syncing between them it must be compatible. My user name in the three evironments is the same (luis) and the directories where this file is found is:

  • Windows - C:\Users\luis\AppData\Roaming\Code\User
  • MacOS - /Users/luis/Library/Application Support/Code/User
  • Linux - /home/luis/.config/Code/User
{
    // General
    "editor.wordWrap": "on",
    "files.encoding": "utf8",
    "files.trimTrailingWhitespace": true,
    "files.associations": {
        "*.json": "jsonc"
    },

    // Name: Trailing Spaces
    // Id: shardulm94.trailing-spaces
    // Description: Highlight trailing spaces and delete them in a flash!
    // VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=shardulm94.trailing-spaces
    "trailing-spaces.trimOnSave": true,

    // Security - I don't use workspace trust by default
    "security.workspace.trust.untrustedFiles": "open",
    "security.workspace.trust.enabled": false

    "git.openRepositoryInParentFolders": "always",
    "git.enableSmartCommit": true,
    "git.confirmSync": false,
    "git.autofetch": true,

    "openInDefaultBrowser.run.openWithLocalHttpServer": false,
    "terminal.integrated.enableMultiLinePasteWarning": "never",
    "explorer.confirmDelete": false,
    "editor.accessibilitySupport": "off",
    "search.followSymlinks": false,
    
    "workbench.colorTheme": "Default Light Modern",
    "projectManager.git.baseFolders": [
        "C:\\Users\\luis\\00.git",
        "/Users/luis/00.git",
        "/home/luis/00.git"
    ],

    "markdownlint.config": {
        "MD023": false
    }
}

VSCode specific settings.json

This are some options that I tend to use per project, under .vscode/settings.json. I'm listing here the ones that I set or don't set depending on the type of OS or situation

{
    "files.eol": "\n",
    "terminal.integrated.fontSize": 11,
}
// Security - I don't use workspace trust by default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment