Skip to content

My Visual Studio Code config file (TypeScript-oriented)

Just to find it easily whenever I switch computer, my Visual Studio Code user settings file (for TypeScript development):

    "telemetry.enableCrashReporter": false,
    "telemetry.enableTelemetry": false,
    "typescript.check.tscVersion": false,
    "typescript.disableAutomaticTypeAcquisition": true,
    "files.exclude": {
        "**/*.js": { "when": "$(basename).ts"}
    "": "none",
    "git.enabled": false,
    "git.path": null,
    "git.autofetch": false,
    "workbench.iconTheme": null,
    "typescript.tsdk": "/usr/local/lib/node_modules/typescript/lib" 

It should be quite self-explaining in most part, but what these settings do is:
– disable telemetry and crash reporter
– disable checking for mismatch between VSCode’s TypeScript and the globally installed TypeScript (which gives a pretty annoying warning that can’t be permanently dismissed and shouldn’t be a problem if you update everything regularly)
– disable Automatic Type Acquisition (ATA)
– hide .js files when a .ts file of the same name exists
– disable auto-updates
– disable Git integration (probably the 3 settings I used are a bit redundant though), although in the end I reactivated it because it’s pretty convenient to spot which lines you recently edited
– disable the file icon theme, which was enabled by default in version 1.13 and looks pretty nice indeed, but wastes too much space IMO and is a bit useless if your project is well-organized
– use my globally-installed, up-to-date TypeScript, rather than the one included in VSCode (which can be a bit outdated sometimes). NB: you can use npm list -g typescript to find out where your TypeScript package is globally installed

Posted in JavaScript / TypeScript / Node.js.

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK

or, reply to this post via trackback.

Please solve the CAPTCHA below in order to fight spamWordPress CAPTCHA