Reputation: 31
In my source code I would like to add a comment statement as follows:
// "file://explaningPicture.jpg"
In VS2010 such a line becomes a hyperlink, which you can open with [CTRL][CLICK] But it only seems to work when I specify a hard coded path
// "file://C:/mypictures/explaningPicture.jpg"
But since my explainingPicture.jpg is part of my project documentation, it is in the VS2010 project, and I really would like to use a relative path.
But what should it be? What is the current directory in a VS2010 project within VS2010?
Upvotes: 1
Views: 143
Reputation: 233
Does not look like it currently can be done according to Elegentin Xie MSFT.
When searching header files or .lib files, we can control the relative path to a certain scope. Unfortunately, I have not got a way of dealing the relative path in comment section.
I started a User Voice suggestion that this be added to Visual Studio - feel free to vote for it.
Related questions specifically about images 1 and 2 seem to benefit from Sergey Vlasov's suggestion of ImageComment, an extension which apparently displays the image itself in visual studio and can use relative paths.
Upvotes: 1