Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

People also ask

How do you open a new file in a new tab in sublime?

On single click you preview the files. You can double click on the file to open them in a new tab.

How do I open multiple tabs in Sublime Text?

To do so, you need to press Ctrl+K, then Ctrl+Shift+Up. You can repeat as many times as you like. Press Ctrl+K, then Ctrl+Shift+Up to open a new sub-window.

How do I use sublime tabs?

Use Cmd (Mac) or Alt (Windows) with the number keys 0–9 to switch between tabs in Sublime Text. For example hit Cmd–2 (Mac) or Alt–2 (Windows) to switch to the second tab. You can also use Ctrl–Tab (Mac and Windows) to cycle through your tabs.


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

"open_files_in_new_window": false

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

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

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
}

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.


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.