Tuesday, July 1, 2008

Visual Studio Tip: "You Are Here"

This is a tip that I got from a colleague several years ago when I was developing in VB 6, but I've kept doing it in Visual Studio and C# and it still works great...


At the beginning of the day I like to know exactly where I left off, so one way of accomplishing that is to just insert "you are here..." in the body of your code where you left off. This accomplishes two things:

  1. it prevents compilation since "you are here..." is not valid code
  2. the IntelliSense picks up the self-inflicted bug in the code and insterts red squigglies to show you the exact location where you left off...
Here's an example:



Hope this helps!