Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.vscode folder missing from Angular2+ project

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?

like image 973
myroslav Avatar asked Dec 06 '17 17:12

myroslav


People also ask

How do I create a .VS Code folder?

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.

What is .VS Code folder in angular?

1. .vscode folder contains local settings for the Visual Studio Code and it's not used by angular itself. – Krypt1.

What is .VS Code directory?

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.

What does .VS Code folder contain?

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.


1 Answers

Figured out the way to do it.

  1. In VS Code, click on Debug button:

    enter image description here

  2. In the Debug toolbar on top, click Configure button:

    enter image description here

  3. 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.

    enter image description here

Selecting one of the debuggers creates .vscode folder (if it did not exist) and saves the file launch.json in it.

like image 126
myroslav Avatar answered Nov 03 '22 00:11

myroslav