Sublime Text:在新窗口中打开文件夹而不是当前文件夹

时间:2017-12-11 15:54:42

标签: sublimetext3

我在Mac OS上使用sublime text 3.

当我打开一个标签并尝试打开文件夹时,它会在同一窗口中打开。像这样:

Sublime Text 3

如何更改此行为以在新窗口中打开新文件夹?

1 个答案:

答案 0 :(得分:3)

Natively Sublime only knows how to open tabs for individual files, so what you're seeing here is something that is a feature of more recent versions of MacOS, which tries to group all of the windows for an application together into one window by providing an extra row of tabs under the window title bar.

In order to disable this, you will need to modify your dock settings. I'm running an older version of MacOS that doesn't have this feature, but I'm told that in System Preferences > Dock there is a setting for something like Prefer tabs when opening documents whose setting you can change to stop this from happening.

In addition, one of the recent improvements in Sublime Text 3 are enhancements to the theme engine that allow theme authors to style how the application presents itself. One of the enhancements allows the theme to change the color of the window caption to match the rest of the window.

Due to the way MacOS implements the window tab feature, using a theme that does this (an example is the Adaptive theme that ships with Sublime) also has the effect of causing MacOS to automatically disable window tabs for that particular application.

For anyone that happens across this question wanting the reverse of what you want for whom changing the above setting doesn't work, the solution to actually having the tabs appear is to use a different theme that doesn't change the window caption color (or modify your theme accordingly).