Skip to content

Instantly share code, notes, and snippets.

@JoseCage
Forked from paulofreitas/VS Code.md
Created November 7, 2017 20:03
Show Gist options
  • Save JoseCage/2aaad38cf2bfc14800762559d89c06bb to your computer and use it in GitHub Desktop.
Save JoseCage/2aaad38cf2bfc14800762559d89c06bb to your computer and use it in GitHub Desktop.
My Visual Studio Code setup

Extensions

  1. Apache Conf (Apache config highlighting)
  2. Auto Close Tag (HTML/XML stuff)
  3. Badges (Markdown badges snippets)
  4. Beautify (HTML/JS/CSS/SASS formatting)
  5. Bower (Bower management)
  6. Code Runner (code runner - d'oh!)
  7. Color Info (CSS color info tooltips)
  8. Composer(Composer management)
  9. Docker (Docker management)
  10. EditorConfig for VS Code (Editor Config support <3)
  11. ESLint (JS linter)
  12. Git History (git log) (Git history)
  13. gitignore (.gitignore highlighting and snippets)
  14. hexdump for VS Code (hexadecimal editor for binary files)
  15. HTML Snippets (HTML snippets)
  16. HTMLHint (HTML linter)
  17. Laravel 5 Snippets (Laravel facade snippets)
  18. Laravel Artisan (Laravel Artisan integration)
  19. Laravel Blade Snippets (Laravel Blade syntax highlighting and snippets)
  20. LaTeX Language Support (LaTeX highlighting and snippets)
  21. Less IntelliSense (LESS auto-completion and refactoring)
  22. nginx.conf (Nginx config highlighting)
  23. Output Colorizer (output/debug/log files highlighting)
  24. Path Intellisense (filename auto-completion)
  25. PHP Debug (PHP debug support with XDebug)
  26. PHP DocBlocker (auto-completion for PHP docblocks)
  27. PHP Formatter (PHP CS formatter)
  28. PHP IntelliSense (PHP auto-completion and refactoring)
  29. phpcs (PHP CodeSniffer linter)
  30. phpmd (PHP Mess Detector static code analysis integration)
  31. PHPUnit (PHPUnit integration)
  32. Python (Python integration - linting/debugging/auto-completion/formatting/refactoring/snippets)
  33. REST Client (REST client)
  34. Sass (SASS highlighting, auto-completion and snippets)
  35. SQL Beautify (SQL formatter)
  36. stylelint (CSS/SCSS/LESS linter)
  37. TODO Highlight (highlighting for comment annotations)
  38. WakaTime (time tracking management)
  39. XML Tools (XML formatting and XPath/XQuery evaluation)

Theme related extensions

  1. Material Theme Kit (Material theme)
  2. vscode-icons (VS Code missing icons)

User Settings

{
    // Editor
    "editor.fontSize": 12,
    "editor.fontFamily": "Menlo",
    "editor.fontWeight": "normal",
    "editor.lineHeight": 20,
    "editor.lineNumbers": "on",
    "editor.rulers": [80, 120],
    "editor.wordWrap": "off",
    "editor.tabSize": 4,
    "editor.autoClosingBrackets": true,
    "editor.selectionHighlight": true,
    "editor.cursorStyle": "line-thin",
    "editor.cursorBlinking": "smooth",
    "editor.renderWhitespace": "boundary",
    "editor.renderControlCharacters": false,
    "editor.renderIndentGuides": false,
    "editor.renderLineHighlight": "line",
    "editor.folding": true,
    "editor.matchBrackets": true,
    "editor.useTabStops": true,
    "editor.trimAutoWhitespace": true,
    "editor.formatOnSave": false,
    "editor.dragAndDrop": true,
    "editor.minimap.enabled": false,

    // Emmet
    "emmet.triggerExpansionOnTab": true,

    // Workbench
    "workbench.welcome.enabled": true,
    "workbench.editor.showTabs": true,
    "workbench.editor.openPositioning": "right",
    "workbench.settings.openDefaultSettings": true,
    "workbench.sideBar.location": "left",
    "workbench.statusBar.visible": true,
    "workbench.activityBar.visible": true,
    "workbench.editor.closeOnFileDelete": false,
    "workbench.tips.enabled": true,
    "workbench.colorTheme": "Visual Studio Dark",

    // Window
    "window.openFilesInNewWindow": "off",
    "window.title": "${activeEditorMedium}${separator}${rootPath}",
    "window.newWindowDimensions": "maximized",
    "window.nativeTabs": true,

    // Files
    "files.encoding": "utf8",
    "files.eol": "\n",
    "files.trimTrailingWhitespace": true,
    "files.insertFinalNewline": false,
    "files.autoSave": "off",
    "files.watcherExclude": {
        "**/.git/objects/**": true,
        "**/node_modules/**": true,
        "**/vendor/**": true
    },
    "files.hotExit": "onExitAndWindowClose",

    // File Explorer
    "explorer.enableDragAndDrop": true,

    // Search
    "search.exclude": {
        "**/node_modules": true,
        "**/bower_components": true,
        "**/vendor": true
    },

    // Extensions
    "extensions.autoUpdate": false,

    // Git
    "git.enabled": true,
    "git.autorefresh": true,
    "git.autofetch": true,

    // Language: PHP
    "php.suggest.basic": false, // using PHP IntelliSense
    "php.validate.enable": true,
    "php.validate.executablePath": "/usr/local/bin/php",
    "php.validate.run": "onSave",

    // Extension: TODO Highlight
    "todohighlight.keywords": [
        {
            "text": "TODO",
            "color": "#fff", // White
            "backgroundColor": "#7c4dff" // Deep Purple A200
        },
        {
            "text": "FIXME",
            "color": "#fff", // White
            "backgroundColor": "#ff5252" // Red A200
        },
        {
            "text": "XXX",
            "color": "#000", // Black
            "backgroundColor": "#ffd740" // Amber A200
        },
        {
            "text": "NOTE",
            "color": "#000", // Black
            "backgroundColor": "#eee" // Grey 200
        }
    ]
}

Tips

  1. I use Grunt/Gulp/Npm integration a lot with Tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment