简体   繁体   English

package.json 文件在资源管理器可视代码中不可见

[英]package.json file invisible in explorer visual code

When I create a package.json that file does not appear in explorer which concern to visual code.当我创建 package.json 时,该文件不会出现在与可视代码有关的资源管理器中。 So, what's the problem?所以有什么问题?

在此处输入图像描述

You have opened only one file in the VSC.您在 VSC 中只打开了一个文件。 From the top select File -> Open Folder... or use the shortcut Ctrl+K Ctrl+O and then select the folder of which contents you want to be displayed in the editor.从顶部 select文件 -> 打开文件夹...或使用快捷键Ctrl+K Ctrl+O ,然后 select 您希望在编辑器中显示其内容的文件夹。 When no folders are opened you can also select the Open Folder button to directly select and open a folder.当没有打开文件夹时,您也可以 select打开文件夹按钮直接 select 并打开一个文件夹。 For example, in this case, open the folder the package.json is in, after which all the contents of that folder will be displayed in the Explorer tab ( Ctrl+Shift+E ).例如,在这种情况下,打开 package.json 所在的文件夹,之后该文件夹的所有内容将显示在资源管理器选项卡中( Ctrl+Shift+E )。

Note that opening a new folder may close any opened files so save before doing anything.请注意,打开新文件夹可能会关闭所有打开的文件,因此请在执行任何操作之前先保存。

If you only want to see only one file at a time, you can select File -> Open file... instead.如果您一次只想查看一个文件,您可以 select File -> Open file...代替。

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

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