There is a feature on Sublime and VSCode that consists on: When you open a file in a new tab but you don't modify it, that tab closes when you open a new one. If you don't want that tab to close, then you hit command+s so it remains open.
On PhpStorm and WebStorm, when you open a new file even if you don't modify it, it remains open when you open a new file.
Any ideas on how to get that functionality on PhpStorm and WebStorm?
The feature's name is "preview tab"
Ctrl + Alt + s | Editor | General | Editor Tabs | Enable preview tab
There is no such feature... Please vote for IDEA-124569 to be notified on any progress with this request.
You can use View/Quick Definition (Alt+space or Cmd+Y in default OSX keymap) to preview the file without opening it in editor.
You can also try playing with editor tabs preferences (Preferences | Editor | General | Editor Tabs), enable Close non-modified files first, for example.
Related
can not open projects in tabs
Can anyone please let me know how to open multiple projects as tabs in Goland
wanted tabs
Set Prefer tabs in macOS Preferences | General to Always or In full-screen.
Open a new project in the IDE, select New Window in Open Project pop-up or configure it via Preferences | Appearance & Behavior | System Settings | Open project in.
workaround ::
Launch GoLand
Open Project1: auto full screen
Open Project2: auto full screen in another window
Quit GoLand at dock
Relaunch GoLand: Project1&2 are auto open and group as tabs in same window
i found new hidden option to merge all opend window in tabs
first follow this answer from s0xzwasd
s0xzwasd
Set Prefer tabs in macOS Preferences | General to Always or In
full-screen.
Open a new project in the IDE, select New Window in Open
Project pop-up or configure it via Preferences | Appearance & Behavior
| System Settings | Open project in.
and
Window
choose Merge all project windows
preview image
The situation is when I open some files it isn't added on editor tab(red box).
The file that I double-clicked is located in green box with replacing existing file.
problem on editor tab in intellij
I want to see multiple tabs in editor tab in IntelliJ.
But I can see just only one tab like below.
I try to look around settings - Editor - General - Editor tab. But I couldn't find answer.
I wish I could get a hint here. Thank you.
Click on gear on the right -> view options -> Open in a new tab
I have an issue with my PhpStorm 2019.2.5, when I open a file and I want an another file, the IDE replace the previous file.
I can't have more one file open :(
Can you help me ?
Accordingly to your screenshot (https://i.ibb.co/7bz3TSq/phpstorm.png) I do not see any editor tabs there which suggests that you may have disabled them (on purpose or accidentally). If you set to not to show editor tabs then IDE will work as if only 1 tab is opened -- that's the current behaviour.
To resolve it: go to Settings (Preferences on macOS) | Editor | General | Editor Tabs and set Tab Placement option to be Top.
When I navigate to a file deep in directories with Ctrl+Shift+N, I see that the file can be deleted, so I navigate to the project pane, and open all the nested directories and then finally delete the file, which is annoying.
Is there a keyboard shortcut to just delete the file currently open in the editor?
Yes, there is:
Press Alt+Home to focus the navigation bar. (⌘+↑ on Mac)
Then press Delete. (⌘+⌫ on Mac)
Even if the navigation bar is turned off, it'll pop up over the editor window.
External tools can solve this.
Create an external tool. The program to run is rm, and for the parameters use the $FilePath$ macro. I also tell it not to open the console.
Add a shortcut in keymap to this external tool to quickly delete the current file open in the editor.
Is there a keyboard shortcut to just delete the file currently open in the editor?
No -- wrong context. "Delete" will work with file when in the right context (e.g. Project View); when editing file (Editor is focused) it will be just deleting text.
so I navigate to project pane, and open all the nested directories and finally delete the file, which is annoying.
Navigate | Select In ... | Project View (Alt + F1, 1 on Windows/Linux using Default keymap)
I've got a little (big) problem in Aptana. Whenever I try to edit my settings for a specific editor, I click "Apply", then "OK", but my preferences don't get saved, and if I open the settings again, the default ones are shown. What might be causing the problem?
I'm using Ubuntu 11.04 with Aptana build 3.0.4.201108101506.
I'm looking forward to reading your suggestions.
Alessandro Desantis
EDIT: The situations changed with version 3.0.5. Now, YAML editor's preferences get erased when closing the settings window as before, while others editors' ones are overridden with defaults when closing the IDE... This is very strange.
open preferences (settings)
click General
click editors
click text editors
change displayed tab width to 4
check insert spaces for tabs
click apply
click ok
open preferences (settings)
click aptana studio
click editors
click YAML (or desired editor)
change tab policy to use spaces
change tab size to 4
this worked for me