Code Snippets are one of the coolest features of Visual Studio, which can help us to increase our coding speed multifold. Good developers generally use shortcuts and tricks to type fewer characters and generate more code in less time.
Code snippets are ready-made snippets of code which we can quickly insert into your source code. They are a great productivity boost & can make writing program code quicker, easier, and more reliable.
In Visual Studio IDE, we can bring up the code snippet menu in 3 different ways –
- Press CTRL+K, CTRL+X and select the required snippet.Press TAB, TAB to invoke the code snippet.

- Press CTRL K + CTRL B to bring up the Code Snippets Manager, where we can see all the code snippets and manage them.
- Press CTRL+SPACE to view the completion list and then select the snippet shortcut from the list. Press TAB, TAB to invoke the code snippet.
Below are justa handful of code snippets which we can use in our day-to-day development work:
Shortcuts Description ctor Creates a constructor for the class prop Creates an auto-implemented property declaration. propfull Creates a property declaration with get and set accessors. try Creates a try-catch block. switch Creates a switch block. foreach Creates a foreach loop.
I suggest you start exploring Code Snippets and enjoy the productivity boost.

Vipin TyagiPosted Mar 10, 2016, 1:18 AM
Helpful. Also, I want to mention that if you previously know your snippet than type some character and hit Tab key twice instantly.This will display your whole snippet in the editor.
Samir BeharaPosted Feb 20, 2016, 9:13 AM
Thanks
Former memberPosted Feb 20, 2016, 1:56 AM
good one.
Jyotirmayee BeharaPosted Feb 10, 2016, 10:44 PM
This is a really useful tip for any developer.
Abhishek KumarPosted Feb 9, 2016, 2:31 AM
Nice info..
Jaipal ReddyPosted Feb 8, 2016, 11:39 PM
Nice
Ehsan SajjadPosted Feb 8, 2016, 8:02 AM
Good tips
Mr ShanawarPosted Feb 7, 2016, 6:37 AM
good artical, helpfull
Ajeet MishraPosted Feb 5, 2016, 1:44 AM
very nice
Samir BeharaPosted Jan 27, 2016, 9:35 PM
Here is the link to my personal blog - http://dotnetvibes.com/
Samir BeharaPosted Jan 27, 2016, 12:27 AM
Thanks all for your feedback.
Ankur MistryPosted Jan 25, 2016, 10:29 PM
Nice share
Vignesh ManiPosted Jan 25, 2016, 4:53 AM
Nice One
Santhakumar MunuswamyPosted Jan 24, 2016, 10:57 AM
Thanks for nice share
Ehsan SajjadPosted Jan 24, 2016, 7:04 AM
useful info
Gowtham KPosted Jan 24, 2016, 6:22 AM
Thanks for sharing:)
Nigel FernandesPosted Jan 24, 2016, 2:45 AM
Useful!
Shashangka ShekharPosted Jan 23, 2016, 11:21 AM
Thanks for sharing
Sthitaprajnya Debasis NayakPosted Jan 23, 2016, 10:45 AM
Nice One
Hemant MahajanPosted Jan 23, 2016, 9:25 AM
Cool!
Muhammad Aqib ShehzadPosted Jan 23, 2016, 6:54 AM
Code snippet is a very nice feature and lot of other hidden things to explore in the environment. Thanks for nice info.