Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using code snippets in Visual Studio

Right now when I want to use the cw snippet (Code snippet for Console.WriteLn). I am typing cw, Tab, Tab.

Is this the correct (fastest!) way of doing it? If there wouldd be some way of only having to hit the tab key once or any other key I would be glad to know it.

like image 911
devoured elysium Avatar asked May 11 '10 15:05

devoured elysium


1 Answers

That is the fastest way. Note that the first tab is just to get rid of the IntelliSense tooltip. The second tab is the one that actually does the work. In other words, you can do cw + esc/tab/enter + tab or even c + esc + w + tab. Or you can even type cw, go somewhere else, click right after the cw then tab and it will auto complete.

That could be annoying if you do something like var cw tab.

Edit: Once you have used "cw", you can then do it a bit faster by just typing c + tab + tab. Since you last used "cw", the c will select "cw" from IntelliSense, the first tab will insert it, and the second tab will auto complete.

like image 85
Nelson Rothermel Avatar answered Sep 30 '22 09:09

Nelson Rothermel