在一个 SublimeText3窗口中有多个文件夹/项目

我只能有一个项目/路径打开在同一时间,在一个崇高的文本3窗口。

每次我快速切换项目(Ctrl+Alt+P) ,新的项目取代当前的项目。每次打开新文件夹(File > Open Folder...)或项目(Project > Open Project...)时,都会在一个新的“崇高文本”窗口中打开它。

我可以有一个以上的项目打开在一个崇高的文本3窗口?如果是——如何做到这一点?

42771 次浏览

If by having multiple projects in one window you mean having multiple directories that are located in different places of your system at once in the sidebar tree, then yes, you can achieve this.

  1. Open one of the projects in Sublime Text just like you always do.

  2. Do one of the following:

    • Drag the root directory of the second project from the file explorer to the sidebar of the first project ST window.

    • In your terminal cd to the second project and enter subl . -a.

-a flag means to add to the last focused window instead of opening in a new window).

EDIT

Even easier solution.

Open the first project. Go to (in the menu above)

Project -> Add folder to project

You can accomplish this by saving your setups as a projects, then under project click switch project and all the tabs you saved in your workspace will appear

Open sublime Text 3, Inside menu bar

  • Go to "Project"
  • "Add folder to project..."

enter image description here

If you're on a Mac just simply drag-&-drop your project folder/alias into Sublime Text Application on your dock.

enter image description here

Then you should see those projected loaded in your Sublime Text ready to go

enter image description here

Happy Coding !

On MacOS, you can use "Project->Add Folder to Project".

Or more generally, by setting "open_files_in_new_window": false (which is default true), the folder you dragged to sublime text will show in the same window.

Another thing you can do is create TABS for each project

Window>>New tab

Doing this you will get project tabs above project file tabs...