Sublime Text 3: do not close tabs automatically - sublimetext3

I am navigating the code of a big JavaScript library using Sublime Text 3. So I need to open a lot of tabs and switch between them to capture the code co-reference. However, Sublime closes 'unused' tabs automatically for me.
How to disable it? I googled but cannot find a solution. I find a shortcut ctrl+shift+t to restore the most recent closed file, but that is not enough. I need to disable the automatic closing, and that would be better if someone shows me the short key to "display and select a file from all open files". Thanks.

When you single-click on a file in the sidebar, Sublime displays it in a "temp" view that is overwritten the next time you single-click on a file. To open a file in a "permanent" tab that stays open even when other files are opened, you simply need to double-click on the file in the sidebar.

A more direct solution that I find mildly preferable, at least until I can retrain myself to double-click when I want a tab to stay open:
In the Settings, set preview_on_click to false.
This is not quite what I want since it all it does is disable the behavior to open a preview tab on single click -- thereby forcing the user to always double click. But perhaps by working this way for a week or so I will be able to retrain my ingrained assumptions and can go back to the default behavior.

Double click that file on left sidebar you do not want to close automatically.

Related

How to open a file into the right editor (of split view)? [duplicate]

When I switch between files (Using ctrl-n for examples) in different editors, intellij always opens the file in the original editor the tab for the file is located. Coming from a vim background this seems counter intuitive for me. Is there a way to force intellij to always open the file in the same editor window?
Please vote for the following related issues:
IDEA-67559 Opening a file when there are multiple file groups may re-open in a different group rather than opening in the current group
IDEA-81628 Navigation within same file mistakenly leaves split editor
When using Ctrl-Shift-N to open the desired file, Shift-Enter to confirm will maintain the focused tab group.

After opening a folder in Sublime Text 3, how do I open two files at once?

I'm using MacOS 10.12.
I open a folder in Sublime Text 3 and I click a file.
The file then appears as a tab on the right side.
If I don't edit it and try to open another file, the previous one will be replaced by the new file.
My question is: how do I open the second one without having to edit the first one?
For now, my solution is to press a blankspace and delete it in the first file (so nothing changes here). And then open the second file.
This is annoying, and I figure there might be a better solution for this.
Thanks in advance.
By default, the following preference is set:
// Preview file contents when clicking on a file in the side bar. Double
// clicking or editing the preview will open the file and assign it a tab.
"preview_on_click": true,
This means that a single left click on a file in the sidebar will open a preview/transient tab. Single left clicking on another file will replace that tab with a preview of the new file. As you have noticed, editing the file in some way will convert the tab from a preview to a persistent tab. Setting this preference to false will mean that single clicking will do nothing. There is currently no option to get the file to open in a persistent tab from a single click.
Regardless of this preference, double left clicking will open the file in a tab that will stay.

Preference - How to prevent duplicate tabs from being opened?

I like to work in multiple columns when working on a project.
I will often switch back and forth between the columns and open other files using cmd+p.
If one column has the file open already then it will just refocus on that tab (good!). However, if I am in a column where the file isn't opened, instead of switching focus to that column, it will open a new tab and clutter my workspace(bad!).
Is there a setting I can change so I can achieve the desired behavior I described above? Chrome has an extension that can do this
There's a plugin for Sublime text 3 for this as well, it's called Open in relevant window and it works just like you just described.
Installation is simple and just like any other ST3 plugin, through package control.
Hope this helps!

Sublime Text 3 Newly opened file override existing file [duplicate]

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
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
}
I was facing a similar but little different problem. I was not able to view any tabs I was opening, and it was always opening a new file.
I fixed it by "View" -> "Show Tabs".

How do I open a new tab when searching in Aptana Studio 3?

Kind of a newbie question.
Sometimes I use the project-wide search feature, and my search results appear listed in the window below, along with the related hierarchy placement.
Let's say I double click a file. It opens. Fine.
However, if I double-click again on another file in the search results window, it will replace the file I just opened. It's impossible for me to open multiple search results, short of manually opening them from the project view.
It wasn't always this way - it worked when I first installed the program, but something changed about three days in and I can't do it anymore.
Thanks!
Go to Preferences > General > Search and uncheck Reuse editors to show matches.

Resources