Hyperlink your source code

  • 2 minutes to read
  • edit

If you’re diligent about putting meaningful comments in your source code (and if you’re not, you should be!) you have probably wanted the ability to have a comment link to another method or another area of code. Using XML comments, it is relatively easy to link to other code elements using the or tags.

However, if you want to have this same ability in normal comments, you were out of luck. However, a new Visual Studio Add In available on CodePlex is changing that. This add in is called HyperAddIn, and it makes creating and following hyper-links in your code trivial.

The main features of the add in are:

For a full description of these features and all of the other features supported by the add in, take a look at the help page.

There is also an effort to get this feature added to the next release of Visual Studio, so be sure to vote for it on Connect. (You will need to sign in first, and then simply click on the number of stars that indicate it’s value to you.)

The ability to have hyperlinks in your source code is one of those features that you will wonder how you got by without it.