Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>VSCode Typescript CompilerNew to Visual Studio Code? Get it now.
VSCode Typescript Compiler

VSCode Typescript Compiler

MMD

|
6,175 installs
| (3) | Free
A tool for compiling typescript without need of NodeJS to be installed
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Visual Studio Code TypeScript Compiler

Compile typescript in visual studio code without need of installing Node.js

Table Of Contents

  • Features
  • How To
  • Configurations
  • Extension API
  • Notice
  • Known Issues

Features

  • Single Compilation: compile any typescript file without need of being in a typescript project:
    • see in vscode output
    • compile it next to current typescript file
    • compile it anywhere you want
  • Live View: see the compiled javascript next to typescript as you edit
  • Compile Project*: compile a typescript project
  • Watch Project*: use typescript watch feature to compile your project

How To

Single Compilation-Live View:

  1. open any .ts file
  2. click the Image icon at top right of editor
  3. choose the compilation mode

Compile Project:

  1. open a vscode workspace(folder)
  2. add a tsconfig.json file at the root of your typescript files
  3. a status bar item appears (Compile Project)
  4. click on that and your project will be compiled

Watch Project:

  1. follow steps 1 and 2 of previous section
  2. right click on tsconfig.json file
  3. click Watch Project and your project will be watched
    • open commands by pressing F1
      • destroy watch: destroys an active watch
      • show active watches: shows the current active watches

Configurations

  • Single Compilation Configurations
    • vscode-tsc.singleCompilationCompilerOptions.module
    • vscode-tsc.singleCompilationCompilerOptions.target
    • vscode-tsc.singleCompilationCompilerOptions.strict
    • vscode-tsc.singleCompilationCompilerOptions.removeComments

Extension API

This extension provides some commands that can be used by other extensions

Current Commands:

  • vscode-tsc.api.transpileModule
    • parameters
      • string source: typescript code
      • ts.TranspileOptions options: options for compilation
    • returns: string: compiled javascript

Notice

  • for now only CompilerOptions in tsconfig.json is supported and other configurations will be ignored

Known Issues

  • nothing yet!

*: needs tsconfig.json file to be in the root of typescript project

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft