1

Use your IDE (Visual Studio)

by volkanuzun 18. June 2008 13:20

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

Ed
Ed United States
6/19/2008 11:11:48 PM #

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.

Comments are closed

Powered by BlogEngine.NET 1.6.0.0
Original Design by Laptop Geek, Adapted by onesoft