简体   繁体   English

Angular2 +项目中缺少.vscode文件夹

[英].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. 我有一个Angular2 +项目,我需要在.vscode文件夹中创建应该立即在我的Angular项目文件夹下的launch.json文件。 I do not see .vscode folder. 我没有看到.vscode文件夹。

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? 我可以使用命令提示符创建它,但我想知道为什么我的项目中没有一个当我遵循的指示假设它应该在那里?

Figured out the way to do it. 弄清楚这样做的方法。

  1. In VS Code, click on Debug button: 在VS Code中,单击Debug按钮:

    在此输入图像描述

  2. In the Debug toolbar on top, click Configure button: 在顶部的“调试”工具栏中,单击“配置”按钮:

    在此输入图像描述

  3. The popup will appear under VS Code toolbar, asking which debugger you want to use. 弹出窗口将出现在VS Code工具栏下,询问您要使用哪个调试器。 Select one from the list. 从列表中选择一个。 Node.js debugger is built into VS Code. Node.js调试器内置于VS Code中。 I installed Chrome debugger and it shows up in the list. 我安装了Chrome调试器,它显示在列表中。

    在此输入图像描述

Selecting one of the debuggers creates .vscode folder (if it did not exist) and saves the file launch.json in it. 选择其中一个调试器会创建.vscode文件夹(如果它不存在)并将文件launch.json保存在其中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM