Sunday, July 13, 2008

Code Snippets

Visual Studio has provided us a great feature of code snippets , Code snippet is a "shortcut" to write large code with less key strokes
for example if you want to write this

MessageBox.Show("This is a msg");

you just have to write this

and press
TAB two times

see the magic , the mbox will turn into the larger text i.e


write your msg string here .. and save valuable keystrokes..

but its not the end

there are many code snippets available in Visual Studio just like that one , just right click and point to "Insert Code snippet" and you will see the list of them ..

still want more...

just visit

and download hundreds of ready-made snippets for your daily use..

still hungry for more :)

you can make your "own snippets" but i left it for your research ... you can find it in MSDN , its really a simple procedure.

Waiting for research result ... :)

No comments:

Post a Comment

Testing Challenge

Can you find more than 20 defects in the below image? Write your defects in the comments section.