Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhpStorm single click preview like Sublime Text

Tags:

phpstorm

At my new job I have to work with PhpStorm. I come from Sublime Text, and what bothers me most about PhpStorm is the lack of a single click preview of the files. In stead, it opens the files for editing and adds them to 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 is annoyed by this. In Sublime it goes to edit mode only after a double click. Is there a setting or plugin to have it like in Sublime?

like image 595
idontknow Avatar asked Aug 08 '15 21:08

idontknow


2 Answers

It's a native feature these days:

Preferences / Editor / General / Editor Tabs / Opening Policy > check "Enable preview tab"

on version PhpStorm 2021.3

like image 106
André Kelling Avatar answered Oct 09 '22 01:10

André Kelling


Single Click To Open File

By default to open a file in phpstorm you have to double click it. I found this to be very annoying. Luckily you can change this to be a single click.

Steps:

  1. Click the gear icon.

  2. Make sure 'Autoscroll to Source' is checked

  3. Make sure 'Autoscroll from Sourcce' is checked

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

like image 26
Ilhom Teshaboyev Avatar answered Oct 08 '22 23:10

Ilhom Teshaboyev