How to format code in Visual Studio Code

You code fast and could not maintain the formatting of the code and or you keep getting Pull Request review comments about your poor code format. The formatted code makes life easy for reader and reviewer. Follow the simple tips given on this blog and it will make your life easy with a few clicks. If you want to auto-format your code in Visual Studio Code you have to enable…

Read More

How to create a package.json

CREATING A DEFAULT PACKAGE.JSON FILE To create a default package.json using information extracted from the current directory, use the npm init command with the –yes or -y flag You can create package.json from the command prompt or directly from Visual Studio Code. 1. Open Visual Studio Code2. Click on Terminal menu3. Click ‘New Terminal’4. You will see that Terminal is open at the bottom-most screen of Visual Studio Code5. Run below command npm init…

Read More