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

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

How to show tabs of open files across the top of VSCode?

It seems that I've fat-fingered some hotkey and my top tabs in VSCode have disappeared.
I miss them terribly. How do I configure VSCode to show tabs of open files across the top of the window?
Thank you for your help.
Open the command palette using Ctrl+Shift+P and execute View: Toggle Tab Visibility:
You probably set the "showTabs" setting to false. To fix this, open user settings: ctrl+shift+p and type in "user settings" and select the "Open User Settings" option.
Find the line that looks something similar to:
"workbench.editor.showTabs": false,
and delete it. Save the file, and you should see your tabs again.
If that is not the setting, read through your settings file and see if there is something else that may be causing the issue.

PyCharm to open new file in the tab right next to the right of current-active tab?

Currently with PyCharm 2016.03, when I open new file, the tab opened at the end of the tab pane.
I google and see one old post about this - it was a open right next feature in the past and changed to open at the end now.
So if you know, if possible, how to switch tab-opening mode in PyCharm, please share!
That config is no longer available (at least in the 5.0.5 Pro version). You still have tabs appearance and closing policy configs under Editor -> General -> Editor Tabs menu, but no opening policy.
As a workaround you can left-click and drag a tab in whichever position you like.

Save all windows as session to resume later

When I do Project > Save Project As... ST writes a project and workspace file, but only for the active window. Attempting to restore from that project file will only restore that one window. How can I save a project with all windows?
Sublime Text 3 has workspaces. I believe 2 does as well, just click and drag your file onto the window and it should pop up.
So make a file you want to be your 'workspace' and click and drag it onto sublime text. When you done just save your work and exit. When you want to reopen it just drag that file onto the sublime text editor and it should all appear.
^ Is what i personally do and it works well.
Here is a link to sublime text 3 though in case you're interested. http://www.sublimetext.com/3

PhpStorm single click preview like Sublime Text

At my new job I have to work with PhpStorm. I come from Sublime Text, and what bothers me most about PhpStorm is the lack of a single click preview of the files. In stead, it opens the files for editing and adds them to active tab, leaving me with A LOT of useless tabs.
I searched here on StackOverflow and Google, but I seem to be the only one who is annoyed by this. In Sublime it goes to edit mode only after a double click. Is there a setting or plugin to have it like in Sublime?
It's a native feature these days:
Settings... / Editor / General / Editor Tabs / Opening Policy > check "Enable preview tab"
on version PhpStorm 2022.3.2
Single Click To Open File
By default to open a file in phpstorm you have to double click it. I found this to be very annoying. Luckily you can change this to be a single click.
Steps:
Click the gear icon.
Make sure 'Autoscroll to Source' is checked
Make sure 'Autoscroll from Sourcce' is checked
http://www.ryanwright.me/cookbook/phpstorm/single-click-open-file
There is no such functionality currently available. I may only suggest to use View | Quick Definition to preview files.
Other than that: https://youtrack.jetbrains.com/issue/IDEA-130918 -- watch this ticket (star/vote/comment) to get notified on progress.
Welcome in late 2019 - we got a plugin for this now:
Plugin: https://plugins.jetbrains.com/plugin/12778-quick-file-preview
Plugin Source: https://github.com/SeeSharpSoft/intellij-file-preview
IntelliJ Issue: https://youtrack.jetbrains.com/issue/IDEA-130918
Don't forget to disable the "Autoscroll to Source" Feature, to get the full advantage of the plugin!
The closest you'll get right now is to enable 'Scroll To Source', however this will actually open the file in another tab, it will not be a preview.
Open the Project, Favorites, etc. side bar (cmd + 1 or ctrl + 1)
Click the gear in the top right
Select 'Scroll to Source'
Note 'Scroll to Source' can be enabled at the same as 'Scroll from Source', just make sure if you click on one file you wait until the sidebar catches up to click another, otherwise the sidebar will autoscroll back and forth between the two. You'll have to click one of them to break that loop.
Read more on JetBrains' website
This is now available as a native feature in the latest version: 2020.3!
See this comment on the YouTrack link someone posted above https://youtrack.jetbrains.com/issue/IDEA-130918#focus=Comments-27-4500169.0-0
Also on the 2020.3 feature list under User Experience there's a mention of "preview tab" here https://blog.jetbrains.com/idea/2020/12/intellij-idea-2020-3/

Linking project window with editor in PhpStorm

Is it possible to link project window/bar with editor? In eclipse there is button in project window called "link with editor". I would like to have exactly the same thing in PhpStorm.
Explanation:
Current active file opened in editor is automatically highlighted in project tree. If I change active file in editor to another, without even touching project window, it should change highlighted file as well. It should also keep current active file highlighted all the time if possible.
I didn't found such option in PhpStorm. If there is no such thing in PhpStorm, maybe there is plugin for that?
Just enable "Autoscroll from Source" in Project View side panel options (under "cog" icon or via right click on panel header/title)