Add images to your code in Visual Studio with the ImageComments extension

ImageComments extension by Luke McQuade lets you show images among code in Visual Studio 2010/2012:

Images in code (Visual Studio 2012 with ImageComments)

Images in code (Visual Studio 2012 with ImageComments)

To add an image you add the specially formatted image comment to your code, like /// <image url=”X:\Path\To\Image.ext” scale=”Y” />. After that the image is displayed by ImageComments right after the comment. You can easily share images with your team by committing them to the repository with the code file and using $(ProjectDir) or $(SolutionDir) macros in the image url to specify relative path for the image. The scale parameter lets you easily change original image size.

While there are some known issues (plus I’d add that images are visible even after the corresponding block is collapsed), the extension adds very useful functionality in a very easy to use manner.

The free ImageComments extension currently supports Visual Studio 2010 and Visual Studio 2012. You can download it, read documentation and see the source code on github.

 

Organize Visual Studio tabs with Tabs Studio add-in

This entry was posted in Reviews and tagged , , . Bookmark the permalink.

One Response to Add images to your code in Visual Studio with the ImageComments extension

  1. Jean says:

    Hey man, this is seriously great. Is there a way to make the plugin use the same syntax as XML comments for doxygen.
    It would be awesome to see the pics I want to include in the doxygen in the code…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s