Skip to content

Markdown in VS Code

Tasks

  • Create workspace settings
  • Path completion built in
  • Type ## in a link to see list of all Markdown headers in workspace
  • Drag file from explorer to create link to it.
"markdown.updateLinksOnFileMove.enabled": "prompt",

markdown.updateLinksOnFileMove.enabled: prompt

Automatic link updating detects renames of Markdown files, images, and directories. You can enable it for additional file types with markdown.updateLinksOnFileMove.include

Pasting files

The markdown.copyFiles.destination setting controls where the new image file should be created

  • Put pasted assets into ./assets/
    "markdown.copyFiles.destination": {
            "/**/*": "assets/"
    }
    

Keep trailing whitespace

{
  "[markdown]": {
    "files.trimTrailingWhitespace": false
  }
}

Shortcuts

Ctrl+Shift+O: Go to header in file