Skip to content

Visual Studio Code ​

These are the customization I did for my VS Code.

Paste Images to images Subfolder in Markdown Document ​

  1. Open user preference Ctrl+Shift+P, then search for open user settings. Select Preferences: Open User Settings (JSON) from the search result.

alt text

  1. Add "**/*": "${documentDirName}/images/" to markdown.copyFiles.destination.
json
{
    "[python]": {
        "editor.formatOnType": true
    },
    "security.workspace.trust.untrustedFiles": "open",
    "git.autofetch": true,
    "terminal.integrated.scrollback": 100000,
    "git.suggestSmartCommit": false,
    "editor.minimap.enabled": false,
    "workbench.colorTheme": "Solarized Dark",
    "remote.SSH.remotePlatform": {
        "192.168.1.26": "linux",
        "192.168.1.35": "linux"
    },
    "window.zoomLevel": 2,
    "markdown.copyFiles.destination": {
        "/posts/**/**/*": "images/${documentBaseName}",
        "**/*": "${documentDirName}/images/"
    },
    
}
  1. Save the file.

  2. Try to paste an image to any markdown .md file and you should see the images pasted to the images subfolder relative to the markdown document.