Skip to content

Latest commit

 

History

History
89 lines (67 loc) · 3.55 KB

VSCode.md

File metadata and controls

89 lines (67 loc) · 3.55 KB

VS Code

Recommendations and tips for using VS Code.

Extensions

The following extensions may be useful in all projects:

HTML/XML

CSS

JavaScript/TypeScript

Markdown

Scala

Svelte

YAML

Settings

The following settings may be useful to you:

{
    "editor.bracketPairColorization.enabled": true,
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    },
    "editor.formatOnSave": true,
    "editor.formatOnType": true,
    "search.exclude": {
        "**/frontend/static/hash": true,
        "**/frontend/static/target": true,
        "**/frontend/static/transpiled": true,
        "**/node_modules": true,
        // etc
    }
}

Do not commit .vscode

The .vscode project directory can contain project-specific configurations but also things which override user preferences, and not everyone will find this useful.

Instead, ignore the directory by default and add back things you explicity want to share, e.g.:

# .gitignore
.vscode/*
!.vscode/*.code-snippets

.vscode/settings.json

Do not commit this, ever! This overrides user settings. Instead, commit a .vscode/settings.json.default file with your project's recommended settings. Individual developers can then pick and choose the bits that will help them the most:

# .gitignore
.vscode/*
!.vscode/settings.json.default