I have an Angular2+ project and I need to create launch.json file inside of .vscode folder that is supposed to be immediately under my Angular project folder. I do not see .vscode folder.
I can create it with the command prompt but I wonder why do I not have one in my project when the instructions I am following assume it should be there already?
The File > Add Folder to Workspace command brings up an Open Folder dialog to select the new folder. Once a root folder is added, the Explorer will show the new folder as a root in the File Explorer. You can right-click on any of the root folders and use the context menu to add or remove folders.
1. .vscode folder contains local settings for the Visual Studio Code and it's not used by angular itself. – Krypt1.
At its heart, Visual Studio Code is a code editor. Like many other code editors, VS Code adopts a common user interface and layout of an explorer on the left, showing all of the files and folders you have access to, and an editor on the right, showing the content of the files you have opened.
vscode folder has files that store the changes you made. For example, if you change Visual Studio Code settings that you want to apply only to your current project, Visual Studio Code creates a settings. json file with those updates, and that file is stored in the . vscode folder.
Figured out the way to do it.
In VS Code, click on Debug button:
In the Debug toolbar on top, click Configure button:
The popup will appear under VS Code toolbar, asking which debugger you want to use. Select one from the list. Node.js debugger is built into VS Code. I installed Chrome debugger and it shows up in the list.
Selecting one of the debuggers creates .vscode folder (if it did not exist) and saves the file launch.json in it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With