Get rid of "Show Context Actions" in PhpStorm

177 Views Asked by At

Is there any way to get rid of this thing:

enter image description here

And force PhpStorm to actually show the error / problem directly, after single right-click?

It drives me crazy that I have to click underlined item and then do something more (click context menu item or press some keyboard shortcut)? In any other software that I am used to, I see the problem after one click of a mouse.

1

There are 1 best solutions below

0
LazyOne On BEST ANSWER

NO! You cannot show the actual context actions there instead

A few possible reasons:

  • Each action has sub-actions. It requires special kind of menu handling: when invoking an item it executes the actual action/quick fix but expanding submenu (on the same item; very narrow area on the right to click using the mouse) will show those extra actions/option -- standard menu cannot do that.

  • This menu supports "quick search": start typing and it will filter the the intention actions. It is very handy for keyboard oriented users when there are many items there (typing 2-3 letters is faster then pressing Arrow Up / Down 4+ times.

  • Right click menu is already quite tall / has too many items, especially if you have a few extra plugins that like to add their own stuff.

YES! You can change make this functionality a bit easier accessible

Register a mouse shortcut for this feature:

  • Press Ctrl+Alt+S to open Settings
  • Type Show Context Actions to the search box and hit Enter
  • Right-click an item found in Other and select Add Mouse Shortcut
  • Assign a Alt+Click shortcut for that item

Remove this menu item as no longer needed:

  • Clear search box to reset settings to the default view
  • Go to Appearance & BehaviorMenus and Toolbars
  • Unfold Editor Popup Menu and select ShowIntentionsGroup
  • Click minus icon in the toolbar to remove it

Now, you can access resolution list by simply pressing Alt and clicking underlined element.

Source: Show errors in PhpStorm with one click