Paste image directly from clipboard to markdown(or other file)!
Support Mac/Windows/Linux! And support config destination folder.
- capture screen to clipboard
- Open the command palette:
Ctrl+Shift+P
(Cmd+Shift+P
on Mac) - Type: "Paste Image" or you can use default keyboard binding:
Ctrl+Alt+V
(Cmd+Alt+V
on Mac). - Image will be saved in the folder that contains current editing file
- The relative path will be paste to current editing file
-
pasteImage.path
the folder path that image will be saved. Support absolute path and relative path.
Default value is
./
, mean save image in the folder contains current file.
If you selected some text in editor, then extension will use it as the image file name. If not the image will be saved in this format: "Y-MM-DD-HH-mm-ss.png".
When you editing a markdown, it will pasted as markdown image link format ![](imagePath)
, in other file, it just paste the image's path.
If you have some any question or advice, Welcome to issue
- support win (by @kivle)
- support linux
- support use the selected text as the image name
- support config (@ysknkd in #4)
- support config relative/absolute path (@ysknkd in #4)
- support config image name pattern
The extension and source are licensed under the MIT license.