24

Is it possible to preview a file with one click on file name like Sublime Text in Phpstorm?

6
  • 2
    Luckily I have found the answer, here it is: stackoverflow.com/questions/11051692/… Sep 10, 2014 at 17:11
  • 1
    If by "preview" you mean "open file for editing" then yes -- that's the right solution (sorry, I'm not familiar with Sublime and do not know how it behaves). If you want to actually preview but not open it .. then you will have to use keyboard shortcut for that.
    – LazyOne
    Sep 10, 2014 at 17:59
  • What is the keyboard shortcut for preview @LazyOne ? Sep 11, 2014 at 5:53
  • 1
    Whatever you have there for View | Quick Definition
    – LazyOne
    Sep 11, 2014 at 9:09
  • 1
    I have a workaround for this. Go to Settings | Editor | General | Editor Tabs and set the Tab limit to 1 (Warning, all your tabs will get closed after 'Apply' or 'Ok'). In the Project-Window turn on the option "Scroll to Source". Single click on files will open them in only one editor tab. When you want to keep them, right click on a tab and Pin Tab ( I have a shortcut for "Pin active Tab" ). It's not perfect but it's something. Nov 12, 2015 at 14:11

3 Answers 3

7

Yes, it's possible but it little bit different from sublime-text.
You can use phpstorm shortcut "Quick Definition", by default on linux:

CtrlShiftI

Select file at project window and press this hotkeys.

2

I installed a plugin called Quick File Preview, by Martin Sommer.

I hate having to install plugins for small things like these, but I felt I had to. Having to double-click a file just to see its content can be quite annoying for someone coming from Sublime and VS Code (VSCodium in my case)

0
2

Currently, this is natively supported by activating "Enable preview tab" in Editor > General > Editor Tabs > Opening policy.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.