Customizing VS Code
[Nov]
2 minute read

Useful Extensions

  • atom-keybindings
  • beautify
  • code-settings-sync
  • gitblame
  • gitlens
  • php-cs-fixer
  • php-debug
  • php-intellisense
  • trailing-spaces
  • twig-language-2
  • vetur
  • xml

settings.json

{
    "editor.tabSize": 2,
    "editor.renderWhitespace": "boundary",
    "editor.detectIndentation": true,
    "editor.minimap.renderCharacters": false,
    "editor.smoothScrolling": true,
    "editor.cursorBlinking": "smooth",
    "editor.cursorSmoothCaretAnimation": true,
    // "files.trimTrailingWhitespace": false,
    "window.menuBarVisibility": "toggle",
    "window.enableMenuBarMnemonics": true,
    "window.restoreFullscreen": true,
    "php.validate.executablePath": "C:\\wamp64\\bin\\php\\php7.4.0\\php.exe",

    "php-cs-fixer.executablePath": "${extensionPath}\\php-cs-fixer.phar",
    "php-cs-fixer.executablePathWindows": "c:/Users/siva/AppData/Roaming/Composer/vendor/bin/php-cs-fixer.bat",   //eg: php-cs-fixer.bat
    "php-cs-fixer.onsave": false,
    "php-cs-fixer.rules": "@PSR2",
    "php-cs-fixer.config": ".php_cs;.php_cs.dist",
    "php-cs-fixer.autoFixByBracket": true,
    "php-cs-fixer.autoFixBySemicolon": false,
    "php-cs-fixer.formatHtml": false,
    "php-cs-fixer.documentFormattingProvider": true,
    "php-cs-fixer.allowRisky": false,
    "window.zoomLevel": -1,
    "window.title": "${dirty} ${activeEditorMedium}${separator}${rootName}",
    "editor.minimap.maxColumn": 30,
    "workbench.startupEditor": "welcomePage",
    "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
    "git.autofetch": true,
    "atomKeymap.promptV3Features": true,
    "git.confirmSync": false,
    "workbench.activityBar.visible": true,
    "breadcrumbs.enabled": true,
    "editor.minimap.showSlider": "always",
    "files.associations": {
        "*.html": "twig",
        // "*.js": "javascriptreact"
    },
    "emmet.includeLanguages": {
        "twig": "html",
        "javascript": "javascriptreact"
    },
    "emmet.triggerExpansionOnTab": true,
    "editor.fontLigatures": true,
    "[javascript]": {
        "editor.defaultFormatter": "HookyQR.beautify"
    },
    "[json]": {
        "editor.defaultFormatter": "HookyQR.beautify"
    },
    "trailing-spaces.includeEmptyLines": false,
    "[html]": {
        "editor.defaultFormatter": "HookyQR.beautify"
    },
    "editor.fontFamily": "Fira Mono, Inconsolata, Fira Sans Mono, Fira Code, Noto Sans Mono, Consolas, 'Courier New', Monoid, monospace",
    "extensions.ignoreRecommendations": false,
    "gitlens.hovers.currentLine.over": "line",
    "php-cs-fixer.lastDownload": 1591818764213,
    "javascript.updateImportsOnFileMove.enabled": "always",
    "workbench.editor.enablePreviewFromQuickOpen": false,
    "workbench.settings.enableNaturalLanguageSearch": false,
    "[markdown]": {

    },
    "telemetry.enableCrashReporter": false,
    "telemetry.enableTelemetry": false,
    "editor.tokenColorCustomizations": {
        "textMateRules": [
            {
            "scope": "entity.name.function",
            "settings": {
                "fontStyle": "bold"
            }
            }
        ]
    },
    "workbench.colorTheme": "Monokai Dimmed",
    "diffEditor.ignoreTrimWhitespace": true,
    "editor.fontSize": 14,
    "editor.insertSpaces": false,
    "editor.cursorWidth": 3,
    "gitlens.views.branches.branches.layout": "list",
    // "phpcs.standard": "WordPress",
    "beautify.language": {
        "js": {
          "type": ["javascript", "json"],
          "filename": [".jshintrc", ".jsbeautifyrc"]
          // "ext": ["js", "json"]
          // ^^ to set extensions to be beautified using the javascript beautifier
        },
        "css": ["css", "scss"],
        "html": ["htm", "html", "php"]
        // ^^ providing just an array sets the VS Code file type
    },
    "[php]": {
        "editor.defaultFormatter": "HookyQR.beautify"
    }
}