如何在Visual Studio代码(VSC)中打开多个文件? [英] How can multiple files be opened in Visual Studio Code (VSC)?

查看:445
本文介绍了如何在Visual Studio代码(VSC)中打开多个文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Visual Studio Code(VSC)中打开多个文件?由于某种原因,我的VS Code副本一次只能打开一个文件。例如,如果工作空间文件夹中有两个文件(比如说HTML和CSS文件),则无法同时打开它们。如果打开了一个文件,则在VSC的文件浏览器中单击其他任何项都会替换当前文件。 VSC不会在新的编辑选项卡中打开另一个文件。与运行VSC的多个实例,工作区或文件夹无关。我只想在同一文件夹中打开2个文件。是否有配置设置来控制它?还是这是升级到最新版本的VSC的结果?仅仅是VSC的新功能吗?这似乎很简单,但我需要帮助。针对Win10x64,运行VSC 1.2.4.0版。任何线索表示赞赏。谢谢。

How can multiple files be opened in Visual Studio Code (VSC)? For some reason, my copy of VS Code can only open one file at a time. For example if there are two files in the workspace folder, lets say an HTML and CSS file, both cannot be opened simultaneously. If one file is open, clicking any other item in VSC's file explorer will replace the current file. VSC will not open the other file in a new editing tab. Not concerned with running multiple instances, Workspaces or folders of VSC. I just want to open 2 files in the same folder. Is there a config setting controlling this? Or is this the result of upgrading to the latest version of VSC? Is just a "new feature" of VSC? It's seems ridiculously simple but I need help. Running VSC v. 1.24.0 for Win10x64. Any clues appreciated. Thank you.

Visusal Studio代码截图:

Visusal Studio Code Screenshot:

推荐答案

在VS Code中,如果在文件上单击一次,它将在临时选项卡中将其打开。如果您要查找一堆文件以查找某些内容,而不打开其中的每一个文件,这将很有帮助。

In VS Code, if you click once on a file, it opens it in a temporary tab. This is helpful if you are looking into a bunch of files searching for something, without opening every single one of them.

如果要在新标签页中打开文件会一直保留直到手动关闭,在文件上双击

If you want to open a file in a new tab that persists until closed manually, double click on the file.

您还可以通过双击保留以前创建为临时选项卡的选项卡单击选项卡。请注意,临时选项卡具有草书标题,而普通选项卡则没有。

You can also persist a tab that was previously created as a temporary tab by double clicking on the tab. Note that temporary tabs have a cursive title, while normal tabs do not.

这篇关于如何在Visual Studio代码(VSC)中打开多个文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆