Hear I am going to share very cool and important stuff for Visual Studio 2013 which will make happy coding. The stuffs which will make your development so easy and faster. So hear you are to experience easy coding with VS 2013.
1. Property:-
For creating property in a class, we need to write access specifier, data type, name and getter and setter.
Ex:-
public int myproperty {get; set;}
Instead of writing all, you can use
Prop (word) and click tab tab (2 times) on keyboard. It will generate property for you. Isn't it cool.
After Tab Tab:-
Prop (word) and click tab tab (2 times) on keyboard. It will generate property for you. Isn't it cool.
After Tab Tab:-
2. Foreach:- Instate of writing foreach syntax manually, Just write foreach and press Tab Tab (2 times). VS will write code for you. As same as above.
Note:- Same thing you can use for For loop ,Do While loop,Create class, If statement etc as well.
3. Improve Vertical Scrollbar:- Normally we used vertical scrollbar for viewing window vertically. In normal scroll bar we can not see Error, change code, unchanged code,current cursor position, break point etc. but using customise scroll bar in VS you can make happy and easy coding :-). For make easy coding you just need to activate customise vertical scrollbar. How you can do this? Just Go to Tools-> Options->Text Editor->All Language->Scroll Bar->Use Map mode for vertical scroll bar
Show preview Tool Tip:- you can magnify the code from scroll bar using this option. this option will find in same location under scroll bar option. look at the above image.
Colour indicates:- In above image colours indicates something. What is that?
1. Green:-Unchanged code.
2. Yellow:-Changed code.
3. Blue:- Error in code.
4. Red:- Break Point
5. Blue Line:- Its shown current cursor position.
6. Orange:- Find results.
oh! some colours are not visible in image because code doesn't have all conditions given here..
4. Text Wrap:-
Some time the portion of a code (line) extend beyond code window, its difficult to read. we have to scroll horizontal scroll bar to read code. instate of doing this you can choose option for text wrap mode. you will find same in to Tools->Options->Text Editor->All languages
checked the option for word wrap.
5. Look into Definitions(Alt+F12):-
look in to Definitions, lets you take a quick view at a class or method definition without opening the actual file. You have to hit F12 to go to an object's definition, but here if you hit Alt+F12 instead, you will be able to take a look up into the definition just below its usage. As shown in Fig, cursor is on "new ContentLibrary()" and when I hit Alt+F12, bringing up the definition of the class right inside my code window below cursor.
Show preview Tool Tip:- you can magnify the code from scroll bar using this option. this option will find in same location under scroll bar option. look at the above image.
Colour indicates:- In above image colours indicates something. What is that?
1. Green:-Unchanged code.
2. Yellow:-Changed code.
3. Blue:- Error in code.
4. Red:- Break Point
5. Blue Line:- Its shown current cursor position.
6. Orange:- Find results.
oh! some colours are not visible in image because code doesn't have all conditions given here..
4. Text Wrap:-
Some time the portion of a code (line) extend beyond code window, its difficult to read. we have to scroll horizontal scroll bar to read code. instate of doing this you can choose option for text wrap mode. you will find same in to Tools->Options->Text Editor->All languages
checked the option for word wrap.
5. Look into Definitions(Alt+F12):-
look in to Definitions, lets you take a quick view at a class or method definition without opening the actual file. You have to hit F12 to go to an object's definition, but here if you hit Alt+F12 instead, you will be able to take a look up into the definition just below its usage. As shown in Fig, cursor is on "new ContentLibrary()" and when I hit Alt+F12, bringing up the definition of the class right inside my code window below cursor.
Happy coding.....



