Skip to content

Instantly share code, notes, and snippets.

@Dmc0125
Last active June 24, 2020 20:41
Show Gist options
  • Select an option

  • Save Dmc0125/0a1c0deeb5698f247b389cbbdcb915f4 to your computer and use it in GitHub Desktop.

Select an option

Save Dmc0125/0a1c0deeb5698f247b389cbbdcb915f4 to your computer and use it in GitHub Desktop.
Visual Studio Code settings, extensions, shortcuts

Extensions

  • vscode-icons
  • Visual Studio IntelliCode
  • Vetur
  • Todo Tree
  • Tailwind CSS IntelliSense
  • Svelte 3 Snippets
  • Svelte
  • Sass
  • Quokka.js
  • Markdown Preview Enhanced
  • Live Server
  • ESLint
  • ES7 React/Redux/GraphQL/React-Native snipepts
  • DetENV
  • C/C++ Compile Run
  • C/C++
  • Bracket Pair Colorizer
  • Better Comments
  • Auto Rename Tag
  • .gitignore Generator

Themes

  • Seti-Black
  • Just Black

Settings

{
  "workbench.colorTheme": "Just Black",
  "workbench.iconTheme": "vscode-icons",
  "window.zoomLevel": 0,
  "editor.fontSize": 15,
  "editor.tabSize": 2,
  "editor.wordWrapColumn": 100,
  "editor.suggestSelection": "first",
  "editor.fontFamily": "'Fira Code', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",
  "editor.fontLigatures": true,
  "javascript.updateImportsOnFileMove.enabled": "always",
  "javascript.preferences.quoteStyle": "single",
  "typescript.preferences.quoteStyle": "single",
  "typescript.updateImportsOnFileMove.enabled": "always",
  "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
}

ESLint config

  • for more than one root directory on one instance
{
  "eslint.workingDirectories": [
      "/path/to/first/directory",
      "/path/to/other/directory"
  ]
}
  • ESLint for typescript
"eslint.validate": [
  "javascript",
  "javascriptreact",
  "typescript",
  "typescriptreact"
]
  • Fix on save
"editor.codeActionsOnSave": {
  "source.fixAll.eslint": false
},
"[typescript]": {
  "editor.formatOnSave": false,
}

Keyboard shortcuts

[
    {
        "key": "ctrl+numpad_divide",
        "command": "editor.action.commentLine",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+shift+[BracketLeft]",
        "command": "-editor.action.commentLine",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+down",
        "command": "editor.action.moveLinesDownAction",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "alt+down",
        "command": "-editor.action.moveLinesDownAction",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+up",
        "command": "editor.action.moveLinesUpAction",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "alt+up",
        "command": "-editor.action.moveLinesUpAction",
        "when": "editorTextFocus && !editorReadonly"
    }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment