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".
Related
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.
I'm looking for a way to delete from the system (not just remove from the opened session) a given file, within Sublime 3 (3103).
The file in question is opened in Sublime, and shows in the sidebar in a Group.
I've installed the Sidebar Enhancements but this only adds the option, in the context menu, to delete a file that is opened within a Folder.
For files in Groups, right clicking on its name in the sidebar only shows the options: Close, Close Others, Close Others Below, New File, Open File.
Is there some way of performing this rather simple task that I might be missing?
Try:
TabsExtra
It gives you the ability to delete files from tab right-click menus.
Whether I'm in a Single or 2 Column mode, I am only able to have 2-3 open files (tabs) per window.
When I hit what appears to be a limit, attempts to open a file (by clicking in Sidebar View) will replace an already open file.
Is there a setting I can change or have I hit a working-as-designed limitation?
Environment:
Sublime Text 3 Stable Build 3103
OS X (El Capitan) 10.11.4
BTW: If I use File Open it does not appear to have the same problem as I can open may files that way.
When you open a file from the sidebar with a single click, its tab will only remain open, if you edit or save the file. If you want the tab to stay open, double-click on a file in the sidebar.
You can override this default behaviour in your settings:
{
"preview_on_click": false
}
Hope someone can help me with this:
I just upgraded from Sublime Text 2, to 3. Now, when I single click on a file to just preview its contents, it actually opens a new tab that must be closed by clicking the "x" on the tab. From my research, this has to do with the setting
// 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,
As the default states, it should just preview the file on single click, but it actually opens it. I did copy the setting into my user preferences file as is, but it had no effect. As an experiment, I set it to :false in my user preferences, and it would not open the file on single click, but it wouldn't preview it either. What am I missing??
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.