CK's Tech Blog
It's Microsoft's World, and I'm just living in it

Clean up ugly code

January 2, 2008 16:20 by ckincincy

So here I sit at work fighting with some open source solution we use to track issues.  The only problem??? The code is ugly.

Makes it nearly impossible to read... so I started looking for a code prettier, as I had used one in the past at a previous employer.   But it was for C++ code, not C#.  However couldn't even find that one in my brief search.  However found a neat little trick in Visual Studio 2005.  

Ctrl+X then Ctrl+V

Does most of the work for me on the paste!

So now at least the code is somewhat readable. 


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

TODO list in Visual Studio 2005

October 30, 2007 09:53 by ckincincy

When programming, you sometimes need to make a comment for something to do later.  Visual Studio has a cool feature in this regard.

When you type a comment: //TODO:  Some comment here.

You can view that list from your IDE.

Just go to View-> Task List. 

Now another neat feature here is you can actually have custom ones as well //ADDWEBSVC: Some comment here.

Just go to Tools->Options->Task List and add your option.  Works like a charm!

Credit goes here.


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5