There are the readymade code templates used in the VS IDE.
e.g type if TAB +TAB (hit tab twice)
type for TAB+TAB
switch TAB+TAB
one of the commonly usedone is property and for this type
PROPFULL TAB+TAB
and this would create a get set property as well the private variable
private int myVar
public int MyProperty
{
get { return myVar;}
set {muVar=values;}
}
and if you wanna change int to string change string and hit tab and all the references would be effected automatically
In order to find all the snippets you can click CTRL+K+X
also you can find this in EDIT +Insert Snippet from the menu
to creat our own you need to snippet editor avaliable for free
No comments:
Post a Comment