Insert Images in code (visual studio code editor)

Note: I found this post on a different forum. I think this is the right place.

Hi to all

Is there any way so to include/insert images in my code (Visual
Studio Editor), for example

/*
Some Comment
*/
void somefuction()
{
}

that is fine, what i want is that

suppose that here i want to insert a image related to
the following fuction

/*
somepicture.jpg e.g Idea
*/

void somefucntion()
{
}

i think u understand my problem now , i did not
want to use the images in the design mode, rather i
want to show it in Coding, like i wrote a function
about Apple, now what i want is put a picture of apple
above that function.


Looking for an urgent response



Answer this question

Insert Images in code (visual studio code editor)

  • Jessel

    You could always resort to ASCII art Big Smile

    Seriously though, Doxygen supports these images in the documentation it produces. Trac also supports images through a wiki that's associated with the project. These aren't direct solutions but there are ways to include images, equations, or other content with your source documentation.

  • Naids

    No, the VS code editor only deals with plain text files.  I am also not aware of any compiler that consumes anything other then plain text files.


  • Harsh Modi - MSFT

    Thanx for you reply. but the problem is not to insert images in source documentation rather in the code itself.
  • Insert Images in code (visual studio code editor)