Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't open in new tab in Sublime Text 3. Is it a bug?

Today my Sublime 3083 became corrupted! I don't know why but every time I click on a file it opens on the same tab! I cannot open two tabs at the same time. Fist file opens in a new tab and another opens in the previous tab and so on!

I did not installed any plugins recently. I just selected "Close Other Tabs" on menu.

What can I do?

Thanks

like image 536
rostamiani Avatar asked Apr 19 '15 05:04

rostamiani


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 close all tabs in sublime without saving?

For Sublime Text 3, doing rm ~/. config/sublime-text-3/Local/* and following that up with ps -aux| grep "subl" and kill <pid> does the trick.


1 Answers

You must open the file using double click. If you open it using single click then you're using a feature called file preview, and that file will be closed when you preview other file unless the file has changes.


In addition, in the settings file you can set the preview_on_click option to false to disable the preview option; if you do that a click on the file won't do nothing, and a double click will still open the file in a new tab. As far as I know there's no option to open the file with a single click, only you can 'preview' the file (it's similar to open but the file get closed if you preview another file). Example setting:

{
    "preview_on_click": false
}
like image 66
sergioFC Avatar answered Sep 21 '22 13:09

sergioFC