Paste Image Markdown
This is a vscode extension based on Inspire-VSCodeExt-Paste-Image that can paste images from the clipboard when writing markdown by using ctrl + v
or command + v
.
I have added the support of MacOS, while the support of Windows and WSL are from:
It works the same as Paste Image does. What I focus on is to make it work well on WSL and Windows and to use ctrl + v
to paste images instead of ctrl + alt + v
.
Besides, I have also removed the compression option for better compatibility.
Features
use ctrl + v
or command + v
to paste images from the clipboard when writing markdown.
Extension Settings
pasteimg.path
:string
The destination to save image file.
default
: ${currentFileDir}/assets
You can use variable:
${currentFileDir}
: the path of directory that contain current editing file.
${projectRoot}
: the path of the project opened in vscode.
pasteimg.basePath
:string
The base path of image url.
default
: ${currentFileDir}
You can use variable:
${currentFileDir}
: the path of directory that contain current editing file.
${projectRoot}
: the path of the project opened in vscode.
pasteimg.renderPattern
:string
The pattern of image url.
default
: ![](https://github.com/shinyypig/Inspire-VSCodeExt-Paste-Image/raw/HEAD/${imagePath})
You can use variable:
${imagePath}
: the path of image file.
pasteimg.confirmPattern
: enum
which pattern to be confirmed when paste image
default
: None
None
won't show confirm dialog
Just Name
show dialog with image name to be confirmed
Full Path
show dialog with image full path to be confirmed
Known Issues
The plugin Markdown All in One
will block the function that you paste image when selecting text. It's better to remove the condition that triggers paste ctrl+v
in the shortcut settings of Markdown All in One
. Don't worry, this plugin will call the paste function of Markdown All in One
. I just think it's a bit of a hassle, why they can't work together without realizing the exsistence of each other.
Release Notes
2.7.4
Only active when the file type is markdown.
2.7.3
Fix the issue that cannot paste in settings page.
2.7.0
Add support for MacOS, and remove the compression option for better compatibility.
The following are the release notes of Inspire-VSCodeExt-Paste-Image:
### 2.6.0
see: https://github.com/dzylikecode/Inspire-VSCodeExt-Paste-Image/issues/18
### 2.5.0
see https://github.com/dzylikecode/Inspire-VSCodeExt-Paste-Image/issues/14 and https://github.com/dzylikecode/Inspire-VSCodeExt-Paste-Image/pull/15
### 2.4.0
- feature: custom render pattern
### 2.3.0
compress image successfully
### 2.2.0
now, it can work
fix: can't work because of import third lib failed
> it drives me crazy again 😭 😭 😭
### 2.1.0
fix: can't work because of bundling the extension
> not work
### 2.0.0
feature:
- support different image type:
- .png
- .jpg
- support to set the threshold which is used to determine whether the image need to be compressed.
> not work
### 1.0.0
fix: errors in license and something wrong with project path
### 0.3.0
fix bug: wrong path in WSL
> bugs drive me crazy 😭 😭 😭
### 0.2.0
fix bug: wrong path of powershell script
### 0.1.0
compress the size of extension from 1 MB to 35.89KB
> can't work because of wrong path of powershell script
### 0.0.5
fix: PowerShell Script is not digitally signed
### 0.0.4
fix: error link in README.md
### 0.0.3
fix: Paste link without selection will trigger the paste function of `Markdown All in One`
### 0.0.2
remove annoying notification and docs in extensions
### 0.0.1
Initial release
---
## more feature
If you want more feature, for example, make it work on Mac and Linux, Please open an issue or pull request. 😏 😏 😏
**Enjoy!** 😊 😊 😊