Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you make Sublime Text 3 open a file in a new tab instead of opening it in the current tab?

Tags:

sublimetext3

When I click the file I want to open in Sublime, it is replacing the current tab I have open. It used to open it in a new tab.

like image 782
Mark A Avatar asked Jun 11 '16 15:06

Mark A


People also ask

How do I open multiple tabs in Sublime Text 3?

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 change settings in Sublime Text 3?

Changing Preferences. Open the Sublime Text default settings file: Mac OS X: Sublime Text 2 > Preferences > Settings - Default. Windows: Preferences > Settings - Default. Linux: Preferences > Settings - Default.

How do I open the same file twice in sublime?

File | New View into File will open a second tab for the same file. This can be moved into another window or tab group. Or alternatively Alt+F, E .


1 Answers

This is because you were only previewing the previous file. If you click on a file once in the sidebar, by default it opens in preview mode. Clicking another file will open it in preview mode, in the same tab. You can disable this behavior by double-clicking the file in the sidebar, by beginning to edit the file, or via the user settings: select Preferences -> Settings-User and add

"preview_on_click": false, 

then save the file. With this new behavior, you will need to double-click on a file in the sidebar to open it, and it will not close if you double-click another file.

like image 178
MattDMo Avatar answered Sep 17 '22 15:09

MattDMo