16 April 2007

Today I work with C#.NET, many-many classes, objects, property, method, variable etc.
In have to remember many thinks when you are developing code in a big project. In earlier version of .net from vb6 time there is a method “Go To Definition” to move cursor to the declaration line. And that time u can know they all thinks about that objects. This one is a good feature.
Just right click and click on “Go To Definition”
And in the next movement your cursor will be there. it it one of the easy way

but suppose if you there are many many forms, class i think that it is not possible to move one form to another and again move back. it is just lost of time.

in Visual Studio 2005, working with C# language. there is a special menu for "Code Definition Window"

View - Code Definition Window it's shor cut key is Ctrl+W, D (u can also change.)



just click on this menu and u will found and move cursor in code line any where. u will see quickly response of Code Definition Window that u can see it definition line.


when i put the cursor near "var1" in the messagebox line it show me it declaration place. here i show u a small example, but this should be very usefull in a big project.

0 comments :

Post a Comment