visual studio - generate code block in C# -


in eclipse there option generate block of commands when press enter example if put command there popup for,foreach etc , when choose example command foreach generate me each block context im in , can change . im using visual studio premium edition 2012 ,do need type block every command ????

the feature talking called snippets in visual studio environment.

eg.

if wanna insert property, this:

prop , press tab twice, ide produces like,

public int myproperty {get;set;}  

leaving edit just-created property navigating (use tab key).

something svm , tab twice, public static void main method snippet produced ide.

     static void main(string[] args)      {       } 

for list of available code-snippets, here can create own custom code snippets , use wish. refer here

i asked similar question @ stackoverflow. hope gets started.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -