Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Can I assign a hotkey for surround snippets?

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
Sandra24 Posted - Mar 21 2009 : 5:46:06 PM
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
3   L A T E S T    R E P L I E S    (Newest First)
Sandra24 Posted - Mar 24 2009 : 3:03:42 PM
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.
feline Posted - Mar 22 2009 : 9:37:34 PM
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.
accord Posted - Mar 22 2009 : 11:03:27 AM
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.

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