Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 How to add hotkey for "Add Include" feature?

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
ot_chen Posted - Mar 04 2018 : 9:15:54 PM
I use the "Add Include" feature very frequently.
So I am looking for the hotkey in Keyboard Shortcuts.

But it seems no command under `VAssistX.` category in the Options/Environment/Keyboard, neither in online doc, https://docs.wholetomato.com/default.asp?W375#all.

How can I add the hotkey for "Add Include"?
4   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Mar 06 2018 : 08:15:14 AM
Personally I trigger most of my refactoring via the Shift-Alt-Q dialog. Having simple access to just the commands that currently make sense works well for me, but I am also more keyboard focused than mouse focused.
ot_chen Posted - Mar 06 2018 : 04:35:44 AM
I found it! Big Thanks!

I thought the command may like VAssistX.AddInclude, so I missed it in Keyboard Shortcuts Dialog. Now I get it in `VAssistX.RefactorAddInclude`.

The "Shift+Alt+Q" then "Add Include" seems very convenient. I will try it.

Thanks!
feline Posted - Mar 05 2018 : 2:40:44 PM
The keyboard shortcuts page now includes Add Include as one of the commands.
feline Posted - Mar 05 2018 : 08:45:59 AM
If you press Alt-Shift-Q this should bring up the VA Refactoring Context Menu, which will list any refactoring commands that can be triggered at the current caret position. Add Include should be the top entry in this menu.

But you should also be able to map a keyboard shortcut to the command:

VAssistX.RefactorAddInclude

in the VA Options dialog keyboard settings. I am not sure why it is not listed in the documentation though, thank you for pointing this out.

If you are not seeing this command in the IDE options dialog, which IDE and version of VA are you using?

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000