Lecture 1A: How to turn on Auto Save on VS Code? Easy way to initiate TypeScript projects in VS code

Опубликовано: 20 Март 2026
на канале: TypeScript Insights
180
5

In this quick tutorial, learn how to turn on Auto Save in Visual Studio Code. Auto Save can save you time and ensure you never lose your work again. Follow these simple steps to set it up and customize it according to your preference.

To turn on Auto Save in Visual Studio Code, you can follow these steps:
1. Open VS Code.
2. Click on "File" in the top-left corner.
3. Select "Auto Save" from the dropdown menu.


Ready to start coding in TypeScript? This step-by-step guide will show you how to set up a TypeScript project in Visual Studio Code. From installing Node.js and TypeScript to creating a tsconfig.json file, you'll have everything you need to dive into TypeScript development.

For initiating TypeScript projects in VS Code, you can use the following steps:
1. Install Node.js: Make sure Node.js is installed on your system.
2. Open your terminal.
3. Install TypeScript: Run `npm install - g typescript`

4. Create a TypeScript configuration file:
`tsc --init`
to generate a `tsconfig.json` file.
5. Start writing TypeScript code in `index.ts` files within your project directory.
6. To compile index.ts file into index.js file Run:

`tsc`

7. To check output on terminal run:

`Node index.js`

Remember that the exact steps might vary slightly depending on your operating system and preferences.