More than one folder / project in one Sublime Text 3 window

SublimetextSublimetext3

Sublimetext Problem Overview


I can have only one project / path opened in in the same time, in one Sublime Text 3 window.

Each time I quickly switch project (Ctrl+Alt+P), new project replaces current one. Each time I open new folder (File > Open Folder...) or project (Project > Open Project...), it is opened in a new Sublime Text window.

Can I have more than one project opened in one Sublime Text 3 window? If yes -- how to achieve this?

Sublimetext Solutions


Solution 1 - Sublimetext

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

Solution 2 - Sublimetext

Open sublime Text 3, Inside menu bar

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

enter image description here

Solution 3 - Sublimetext

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

Solution 4 - Sublimetext

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 !

Solution 5 - Sublimetext

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.

Solution 6 - Sublimetext

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...

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestiontrejderView Question on Stackoverflow
Solution 1 - SublimetextSergey TelshevskyView Answer on Stackoverflow
Solution 2 - SublimetextcoderView Answer on Stackoverflow
Solution 3 - SublimetextfrazrasView Answer on Stackoverflow
Solution 4 - Sublimetextcode-8View Answer on Stackoverflow
Solution 5 - SublimetextMeta FanView Answer on Stackoverflow
Solution 6 - SublimetextHerbert SmithView Answer on Stackoverflow