- TypeScript Microservices
- Parth Ghiya
- 205字
- 2021-06-25 21:48:41
Visual Studio Code (VS Code)
VS Code is one of the best available editors right now for TypeScript. By default, VS Code TypeScript displays warnings on incorrect code, which helps us to write better code. Linters, debugging, build issues, errors, and so on are provided out of the box by VS Code. It has supports for JSDoc, sourcemaps, setting different out-files for files that are generated, hiding derived JavaScript files, and so on. It has support for auto-imports, generating method skeletons directly just like Eclipse for Java developers. It also provides options for version control systems. Hence, it will be our primary choice as IDE. You can download it from https://code.visualstudio.com/download.
Installing it for Windows is the easiest thing, as it's an .exe file and all you have to do is select a path and follow the steps. Installing it on a Unix/Ubuntu machine involves downloading the deb file and then executing the following command lines:
sudo dpkg -i <file>.deb
sudo apt-get install -f # Install dependencies
Once VS Code is available, open extensions and download https://marketplace.visualstudio.com/items?itemName=pmneo.tsimporter and https://marketplace.visualstudio.com/items?itemName=steoates.autoimport. We will use the advantages of these extensions, which will be helpful for easy code management, prebuilt skeletons, and more.