Implement Typora's Copy image to ./assets
functionality in VSCode:
Linux users must install xclip.
Ubuntu
sudo apt install xclip
CentOS
sudo yum install epel-release.noarch
sudo yum install xclip
If you want to use in the Remote Mode, please set remote.extensionKind like this:
"remote.extensionKind": {
"hancel.markdown-image": [
"ui"
]
}
And if you want to save image in your remote workplace, you must use SFTP upload method. Local couldn't use in Remote Mode.
Through actual testing, in remote mode, you need to configure
remote.extensionKind
, then use theLocal
configuration in the remote window. See the next section for specific implementation.
❗️ Taking remote mode as an example. The configuration method is the same in local mode.
Filename: img_${YY}${MM}${DD}-${HH}${mm}${ss}${mss}.png
img_${YY}${MM}${DD}-${HH}${mm}${ss}${mss}
Change path to: ./assets
This way, pressing the shortcut alt+shift+v
in markdown file will paste images to ./assets/...png
.