Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2010 insert snippet shortcut / toolbar command

Is there a way to insert a concrete snippet (say, MySnippet1) with a single shortcut or toolbar command in Visual Studio 2010?

I've tried macro recorder - it doesn't allow inserting snippets during recording.

Regards,

like image 910
noober Avatar asked Mar 22 '26 20:03

noober


1 Answers

If you go to 'Code Snippet Manager' short cut => Ctrl + K, Ctrl + B. You will see that all snippets have a direct shortcut associated with them. I would guess that if you were to add your own snippet you will get an option of linking a direct short cut to it.

HTH.

Cheers, Tarun

like image 79
Tarun Arora Avatar answered Mar 24 '26 11:03

Tarun Arora



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!