One click preview of PhpStorm like Sublime Text

At my new job, I need to work with PhpStorm. I came from Sublime Text, and what bothers me the most about PhpStorm is the lack of one file preview. Instead, it opens the files for editing and adds them to the 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 annoys this. In Sublime, it goes into edit mode only after a double click. Is there a setup or plugin to have this as in Sublime?

+10
source share
4 answers

One click to open file

By default, to open a file in phpstorm, you must double-click on it. I find it very annoying. Fortunately, you can change this with one click.

Stages:

  1. Click the gear icon.

  2. Make sure the "Autoscroll to source" checkbox is selected.

  3. Make sure "Autoscroll from Sourcce" is checked

http://www.ryanwright.me/cookbook/phpstorm/single-click-open-file

+6
source

There is currently no such functionality. I can only suggest using View | Quick Definition View | Quick Definition to preview files.

In addition: https://youtrack.jetbrains.com/issue/IDEA-130918 - view this ticket (star / vote / comment) to receive progress notifications.

+5
source

The closest thing you will get right now is to enable "Scroll To Source", however it will actually open the file in a different tab, it will not be viewed.

Open the Project panel, Favorites, etc. (cmd + 1 or ctrl + 1)
Click the gear in the upper right corner JetBrains Sidebar Sidebar Settings
Select "Scroll to source"

Note
You can enable โ€œScroll to sourceโ€ in the same way as โ€œScroll from sourceโ€, just make sure you click on one file that you wait until the sidebar reaches another click, otherwise the sidebar will automatically scroll between them. You need to click one of them to break this loop.

Read more at the JetBrains website

+2
source

Welcome to the end of 2019 - we have a plugin for this:

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

Do not forget to turn off the function "Autoscroll to the source" to take full advantage of the plugin!

+2
source

All Articles