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
 Technical Support
 Can I assign a hotkey for surround snippets?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Sandra24
New Member

2 Posts

Posted - Mar 21 2009 :  5:46:06 PM  Show Profile  Reply with Quote
Hi,

Some surround snippets I use a LOT, like static_cast<$end$>($selection$), is there some way to assign a hotkey in visual studio to individual snippets?

The whole right click, click surround snippets, navigate to desired snippet, click it, has way too many steps :)

Thanks

Sandra

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Mar 22 2009 :  11:03:27 AM  Show Profile  Reply with Quote
No, unfortunately you cannot do that.
However, the snippet "#ifdef (VA X)" can be triggered by the # key (Shift+3). So if you overwrite it, you will be able to trigger it by this keystroke.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Mar 22 2009 :  9:37:34 PM  Show Profile  Reply with Quote
As an alternative you could probably write an IDE macro to emulate that VA Snippet, and then assign the IDE macro to a specific keyboard shortcut.

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

Sandra24
New Member

2 Posts

Posted - Mar 24 2009 :  3:03:42 PM  Show Profile  Reply with Quote
quote:
As an alternative you could probably write an IDE macro to emulate that VA Snippet, and then assign the IDE macro to a specific keyboard shortcut.


Thanks, that's a pretty good idea.

Sandra
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