How to paste the screenshot from clipboard gracefully in VS Code, VS Code will copy this image when the current specified directory and rename it according to the time
The built-in markdown plugin has a markdown.experimental.copyFiles.destination
setting, but there is no documentation explaining how to configure it, and using the’Paste Image ‘plugin for example has no effect
2
Answers
First you need to enable
editor.experimental.pasteActions.enabled
("Enable/disable running edits from extensions on paste."). Then you can setmarkdown.experimental.copyFiles.destination
configuration according to its documentation:For example, to paste any pasted images in the same directory as the markdown file you are pasting into, use:
Took me a bit of trial and error to figure out how this works. Setting
Item="**/*"
andValue="images/"
will copy a file I paste into a Markdown file into theimages/
directory