Author |
Topic |
|
Sandra24
New Member
2 Posts |
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 |
Sandra |
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
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. |
|
|
feline
Whole Tomato Software
United Kingdom
19022 Posts |
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. |
zen is the art of being at one with the two'ness |
|
|
Sandra24
New Member
2 Posts |
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. |
Sandra |
|
|
|
Topic |
|