简体   繁体   中英

Assigning a shortcut to Visual Assist's quick actions

In plain Visual Studio there is the Alt+Enter shortcut, which brings up a popup with quick fixes and improvement suggestions.

I am using the Visual Assist plugin for c++ development, which lets me right-click on a item and open 'Quick Actions and Refactorings (VA)' menu.

I would like to combine these two options into one: Having the advanced features in the easy accessible Alt+Enter shortcut without reaching to the mouse and right-click. Anyone knows how to assign a custom shortcut to 'Quick Actions and Refactoring'? Or any suggestions how to get rid of the tedious right-click?

Assigning shortcuts always works like this in Visual Studio: Tools -> Options -> Environment -> Keyboard

  1. Find the right identifier for the desired action, which is VAssistX.RefactorContextMenu in your case.

  2. Assign the desired shortcut Alt+Enter for the scope Text Editor and there you go.

Note, that this replaces Visual Studio's original Alt+Enter functionality, not blending them together.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM