PhpStorm open file and replace the previous - ide

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.

Related

How to open projects as tabs on macOS in Goland IDE

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

How can I see multiple tabs in IntelliJ?

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

How to close unmodified tabs when opening a new one?

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.

How do I prevent PhpStorm from moving cursor to the left when I press Ctrl+S for save file? [duplicate]

I just updated to PhpStorm 2016 and I noticed that suddenly every time I press Ctrl + S to save the file it removes the spaces/tabs that I pressed to continue writing after testing this bit of code.
Pleas help, this is very annoying for me, since I save my file after every line of code.
Here is a screenshot when I'm about to save, so after hitting Ctrl + S the text cursor will move all the way to the left, deleting all spaces & tabs.
You need to disable Settings/Preferences | Editor | General | Remove trailing spaces on: option.
(NOTE: in older IDE versions you may have just a drop down box and have to select the None option there)
P.S. Please note that if you have .editorconfig files in your project then corresponding setting from there (trim_trailing_whitespace) will overwrite such IDE setting. It is expected as it's the whole nature of such files.
If you do not like that then either edit your .editorconfig file accordingly (https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#current-universal-properties) or disable such support in the IDE (Settings/Preferences | Editor | Code Style | Enable EditorConfig support)
I recently experienced the behavior that trailing spaces got removed everywhere although the option Settings/Preferences > Editor > General > Strip trailing spaces on Save was set to Modified Lines. Setting the option to None didn't help nigher.
The reason for that was, that I had installed the JetBrains IDE plugin EditorConfig. In the root of my (PHP-) project I had a
.editorconfig file with the setting trim_trailing_whitespace = true. Setting that to false, fixed the issue.
PhpStorm 2021.2.3
Just Settings/Preferences > Editor > General
scroll down to On Save

Open a file with keyboard that is actual a dir

I hate using mouse in IDEA editors, and what bugs me is that I can't find a way to open file that has been translated with Babel for example to ES5. The file has 2 sub files that are translated to ES5. So when I press Alt+1 I jump to Project view, find the file, press enter and instead opening file content in the editor it opens a folder tree.
How can I open file with the keyboard instead opening file directory?
You can always use F4 -- it's a standard shortcut (in Default keymap) to open file for editing.
In case if you need to assign another shortcut .. or find out what shortut it is in your keymap/OS:
Settings/Preferences | Keymap
Look for Main Menu | View | Jump to Source action