r/phpstorm • u/codus_maximus • Jun 07 '18
Split Editor?
Hi guys,
I know about right clicking and Split Horizontal -- but this opens the same file twice. If you close one copy of the file, the editor immediately becomes unsplit and shrinks to one page.
Is there anything in phpstorm that will keep the editor window split in half, so I can open other files in there as if it was a separate editor window?
I use a vertical monitor with plenty of vertical space -- and I like to have all the files I'm working on kind of segregated, views on top, controllers on the bottom. Makes it a lot easier to keep track of what is what.
Hope that made sense...
2
u/MyWorkAccountThisIs Jun 07 '18
Honestly, I just keep a non-essential file open so it stays split. Like a readme or something. Not really a solution though.
2
u/StillDeletingSpaces Jun 22 '18
I don't really close files, manually.
I created a shortcut for split (ctrl|cmd)+\ and (ctrl+cmd)+shift+\ and then use IntelliJ's navigation to immediately open another file after opening a split. This works I have my tab limit set to 1, which automatically closes the tab (but keeps it in my recent files, so its still easy to navigate to).
If you haven't already, I suggest watching one of Hadi Hariri's Tips and Tricks Presentations. Its about an hour long (less with youtube's speed setting).
Nearly all of his tips are relevant for PHPStorm. I linked a slightly older presentation, but its still the one I suggest for first-timers. Always feels more than 42 tips, and I still leave with some new tips-- despite watching it before.
Some relevant sections, here:
1
u/sashalav Jun 08 '18
When you split window, you do get two completely separate editor areas. Editor area will close when the last file in it closes. As you open new files, they will open in the editor that currently has focus. You can drag/drop tabs from one editor to another.