How can I include an image from the same destination folder as of the document as Markdown in Visual Studio Code?
I tried this, but it didn't work:
![Getting Started](./2/to/img.jpg)
Copy an image. Hit ctrl+alt+v to paste image to markdown document.
If the image is in the same directory as the Markdown file, you can use either:
![Getting Started](./img.jpg) ![Getting Started](img.jpg)
For a workspace layout like:
docs/ images/ img.jpg README.md
In README.md
, this would be either:
![Getting Started](./images/img.jpg) ![Getting Started](images/img.jpg)
Question is old, however, I found a very nice plugin within visual studio code Paste Image
As the plugin suggests you can paste the image onto markdown file by pressing ctrl(cmd) + Alt +V.
Or
Open command palate pressing ctrl(cmd) + shift + p and select paste image. In the background the plugin creates a image file with date/time and puts reference on the markdown.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With