Skip to content

Paste Images into Markdown document #18112

@longbuivan

Description

@longbuivan

Summary

Support pasting images from clipboard into Markdown and other documents being edited.

Description

Functionality similar to GitHub when editing a Markdown document, whereby when you paste image data from the clipboard it does the following:

  1. Creates an image file from the pasted clipboard data in a folder adjacent to the file you are currently editing. (e.g. something for something.md/something.py)
  2. The relative path of that new file is pasted into the buffer, ./something/something001.png.
  3. When editing a Markdown file instead of ./something/something001.png you'd get ![](./something/something001.png)

Optionally include a setting with a filename template to configure the folder/file name where images should be pasted (e.g. ./${basename}_${counter}, .images/pasted_image_${counter}, etc).

Extension prior art:

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension infrastructureFeedback for extensions APIs, creation, management, etcfeature[core label]markdownMarkdown markup supportpotential extensionFunctionality that could be implemented as an extension (consider moving to community extensions)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions