Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To insert images into your markdown files in VS Code, follow these steps:

  1. Save the image you want to use in your markdown file in the same folder as your markdown file.
  2. In your markdown file, type ![ and then the alt text for your image.
  3. After the alt text, type ](.
  4. Type the filename of your image, including the file extension (e.g.: example.png).
  5. Type ) to close the parentheses.

Your code should look something like this:

![Alt text for image](example.png)

Once you've inserted the image code, save your markdown file and you should see the image displayed in the preview pane.