VS Code マークダウンでスクリーンショットをコピペしたい

提供:onayami
VS Code 左下の設定ファイルを開く


右上のsetting.jsonを開く


setting.jsonを設定する
{
    "markdown.copyFiles.destination": {
        "*": "./images/${documentBaseName}/${documentBaseName}.${fileName/^(.+)\\.([^.]+)/$2/}"
    }
}

コピペすると設定した指定のフォルダにイメージ画像が配置される

マークダウンのプレビューは、Ctrl + Shit + v となります

参考
https://www.1ft-seabass.jp/memo/2024/04/26/vscode-current-markdown-copyfiles-destination-setting-ver2/
https://note.com/teaslife/n/nadfab4591bfb