Use your IDE (Visual Studio)

by volkanuzun 6/18/2008 7:20:00 AM

After i have Resharper (thanx to the inland empire .net user group) i understand that IDE can really help you write better code. Visual studio is a very powerful ide and i dont think i, myself utilize it too much, i want to a list of nice things i like with visual studio.

  1. Line numbering, i love to see line number in the code file so whenever the error message is talking about a line number, i can easily navigate to that line, how do you activate it for all your codes ? Go to Tools => Options => Text Editor => All Languages => Check Line Numbers section
  2. When you are writing the code, and you refer to a .net class but dont have the using statement ? Hit Control+.
  3. Your IDE's default language setting has changed from C# to VB.NET (or anything else?) ? Tools =>Import and Export Settings => Reset All Settings => No, just reset... => Select your language
  4. You need to come back to a certain line of code? put a bookmark,Edit=>Toogle Bookmarks r Control K,Control K , to go to that line Control K+N
  5. You want to leave a note to urself or to a friend who is going to maintain the same project? Comments to too difficult to manage task. Just add a comment that starts with //TODO: and when you compile the code, you will see the note in the tasks window. 
  6. TODO: isnt good enough? you want to add your own types? Tools=> Options =>Environment => Task List. You can add yours tasks types here giving them a priority too
Do you have any more ?

Tags:

Comments

6/19/2008 5:11:48 PM

Ed

Ctrl+G will open a small dialog where you can type the line number you want to go to (providing it is in the current file).

Ctrl+M+O (hold control and press M then O) will collapse all of the regions.

Ed us

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading



About the author

Volkan Uzun




E-mail me Send mail

Twitter

Calendar

<<  December 2008  >>
MoTuWeThFrSaSu
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar

Flickr Badge

www.flickr.com
This is a Flickr badge showing public photos from volkanuzun. Make your own badge here.

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

Sign in