macos 在 Sublime Text 2 中,如何在新选项卡中打开新文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9961350/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
In Sublime Text 2, how do I open new files in a new tab?
提问by Doug Smith
When I'm editing with files on the server, and I click to edit them, if I'm editing multiple files (say an HTML file and a CSS file) but they open in new windows, which, on my small laptop display is a little inconvenient.
当我在服务器上编辑文件并单击以编辑它们时,如果我正在编辑多个文件(例如 HTML 文件和 CSS 文件)但它们在新窗口中打开,在我的小型笔记本电脑显示器上有点不方便。
How do I make it open in a new tab, rather than a new window?
如何让它在新选项卡中打开,而不是在新窗口中打开?
回答by BoundinCode
OSX-Only: Add the following to Preferences > Settings - User
or ⌘+ ,:
OSX-Only:将以下内容添加到Preferences > Settings - User
或⌘+ ,:
"open_files_in_new_window": false
回答by landed
This is the correct syntax i.e. use a comma...
这是正确的语法,即使用逗号...
{
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"open_files_in_new_window": false
}
回答by Sebastian Green
Open up your user preferences file
打开您的用户首选项文件
Preferences > Settings - User
首选项 > 设置 - 用户
Add the following line
添加以下行
"open_files_in_new_window": false
Make sure you place it withint the {}
as you may already have some settings in there. Make sure you add the ,
after the previous setting.
确保将其放置在内部,{}
因为您可能已经在其中进行了一些设置。确保,
在之前的设置之后添加。
Example:
例子:
{
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme",
"font_size": 14.0,
"open_files_in_new_window": false
}
回答by Soumendra
For Windows users:
By default the above setting value will be true i.e."open_files_in_new_window": true
对于 Windows 用户:
默认情况下,上述设置值为 true,即"open_files_in_new_window": true
If you are using sidebar then just double click on the file to open it in a new tab.
如果您使用侧边栏,则只需双击该文件即可在新选项卡中打开它。
If the current file is not modified, then by single clicking on a new file, will close the current file and open the new file on the same tab.
如果当前文件未被修改,则通过单击新文件,将关闭当前文件并在同一选项卡上打开新文件。
回答by aeronef
I use the sidebar menu. I put the folder holding my file in the sidebar by drag and drop. Search tour file in the menu, then just double click it. This will cause it to display in a tab.
我使用侧边栏菜单。我通过拖放将保存我的文件的文件夹放在侧边栏中。在菜单中搜索游览文件,然后双击它。这将导致它显示在选项卡中。