Skip to content

Instantly share code, notes, and snippets.

@mugan86
Last active November 10, 2018 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mugan86/9fe965156b465c9c11cd77346caa3bc8 to your computer and use it in GitHub Desktop.
Save mugan86/9fe965156b465c9c11cd77346caa3bc8 to your computer and use it in GitHub Desktop.
Detect changes in VS Code when I work in Typescript proyects
1. Run tsc --init in your project folder to create tsconfig.json file (if you don't have one already).
2. Press Ctrl+Shift+B to open a list of tasks in VS Code and select tsc: watch - tsconfig.json.
3. Done! Your project is recompiled on every file save.
You can have several tsconfig.json files in your workspace and run multiple compilations at once if you want (e.g. frontend and backend separately).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment