Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 How to add hotkey for "Add Include" feature?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ot_chen
New Member

Taiwan
2 Posts

Posted - Mar 04 2018 :  9:15:54 PM  Show Profile  Reply with Quote
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"?

OT Chen

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Mar 05 2018 :  08:45:59 AM  Show Profile  Reply with Quote
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?

zen is the art of being at one with the two'ness
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Mar 05 2018 :  2:40:44 PM  Show Profile  Reply with Quote
The keyboard shortcuts page now includes Add Include as one of the commands.

zen is the art of being at one with the two'ness
Go to Top of Page

ot_chen
New Member

Taiwan
2 Posts

Posted - Mar 06 2018 :  04:35:44 AM  Show Profile  Reply with Quote
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!

OT Chen
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Mar 06 2018 :  08:15:14 AM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000