In Sublime Text 2, how do I open new files in a new tab?

Solution 1:

OSX-Only: Add the following to Preferences > Settings - User or + , :

"open_files_in_new_window": false

Solution 2:

This is the correct syntax i.e. use a comma...

{
    "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
    "open_files_in_new_window": false
}

Solution 3:

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
}

Solution 4:

For Windows users:
By default the above setting value will be true i.e.
"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.