简体   繁体   English

如何使用崇高的文字或Visual Studio代码在同一文件夹中打开其他标签?

[英]How to open a different tab in same folder using sublime text or visual studio code?

I use sublime text 3 and visual studio code, but i found that if i open a different file in same folder , it does not open a different tab, instead the new tab will replace the old tab. 我使用了sublime text 3和visual studio代码,但是我发现,如果我在同一文件夹中打开其他文件,则不会打开其他标签,而是新标签替换了旧标签。 How do I get a file to open in a different tab in same folder ? 如何在同一文件夹的其他选项卡中打开文件?

I'm not familiar with VSCode, but in Sublime, single clicking a file opens it in a semi-transient view for preview purposes. 我不熟悉VSCode,但是在Sublime中,单击文件可在semi-transient视图中打开它以进行预览。 You can tell this is happening by the file name in the tab being italicized . 您可以通过斜体选项卡中的文件名来判断发生这种情况。

The reason for this is to allow you to quickly preview files for editing without having an excessive number of tabs open. 这样做的原因是允许您快速预览文件以进行编辑,而不必打开过多的选项卡。 So when you single click on another file, the existing preview tab is reused for the new file. 因此,当您单击另一个文件时,现有的预览选项卡将重新用于新文件。

In order to commit the tab to being a "fully opened" file, you can either double click the file to tell Sublime that you want to edit it, or make a modification to the file in the buffer. 为了将选项卡提交为“完全打开”的文件,您可以双击该文件以告知Sublime您要对其进行编辑,或者对缓冲区中的文件进行修改。

This is controlled by the setting preview_on_click , which is turned on by default. 这由设置preview_on_click控制,该设置默认情况下处于启用状态。 If you turn this off, single clicking files will not preview them, so you need to double-click files in order to open them. 如果关闭此功能,单击文件将不会预览它们,因此您需要双击文件才能打开它们。

In both editors, if you single click a file it remains in a single tab that is re-used by other single-clicked files. 在两个编辑器中,如果单击文件,它将保留在一个选项卡中,该选项卡可被其他单击文件重新使用。 If you double click the file, it opens it in a new tab. 如果双击该文件,它将在新选项卡中将其打开。 At a glance, you'll also notice that the "single click tab" title is italicized, while the ones you double clicked are regular text. 乍一看,您还会注意到“单击选项卡”标题为斜体,而双击的标题为常规文本。

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

相关问题 崇高的文本:打开包含文件夹 - sublime text : open containing folder Sublime Text 2是否能够使用类似于Visual Studio的区域代码? - Does Sublime Text 2 have the ability to region code similar to Visual Studio? Sublime Text 3:从代码打开文件夹对话框需要安装Sublime Text包是什么? - Sublime text 3: what is the sublime text package needs to be installed to open folder dialog from the code? 如何像 Sublime Text 一样在 Visual Studio Code 中自动完成 tag.className - How to autocomplete tag.className in Visual Studio Code like Sublime Text 如何在Sublime Text 2菜单中添加“文件->打开文件夹”? - How to I add 'File-> Open Folder' to the Sublime Text 2 menu? 如何在Sublime Text中创建打开文件夹的键盘快捷键? - How do I create a open folder keyboard shortcut in Sublime Text? 崇高文字:打开包含电源外壳的文件夹 - Sublime text: open containing folder with power shell 在Windows上使用Sublime Text 2在Git Bash中打开文件夹 - Open folder in Git Bash with Sublime Text 2 on Windows 从Visual Studio迁移到Sublime Text - Moving from Visual Studio to Sublime Text 如何从linux中的命令行打开Sublime Text 2文件到选项卡,而不是新窗口 - How can I open Sublime Text 2 files from the command line in linux to a tab, not a new window
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM