Markdown Image Paste for RemoteMarkdown Image Paste for Remote is a Visual Studio Code extension designed to simplify the process of inserting images into Markdown files while working in a remote development environment, such as GitHub Codespaces or a DevContainer. It uses the WebView clipboard API to provide an easy and convenient way to copy images from your clipboard to your remote host and automatically generate the appropriate Markdown syntax for the copied image. Features
MotivationWhile several existing extensions support copying images from the local clipboard into Markdown files, they typically do not work seamlessly with remote development environments like GitHub Codespaces or DevContainers. Visual Studio Code's API does provide access to the local clipboard; however, it only supports text content, not images. As a workaround, I implemented a solution that leverages the WebView clipboard API to enable access to the local clipboard and support copying image content. This approach allows users to conveniently copy images from their local clipboard to the remote host while working in a remote development environment. How it worksThe extension uses the WebView clipboard API to access the local clipboard and copy image content. It works by following these steps:
Extension SettingsCurrently, there are no extension settings. Images are copied to the folder that is same as the Markdown file that is currently open in the editor. ContributionThis extension is created for personal use. But any contribution is welcome. Feel free to open an issue or submit a pull request. Release Notes0.1.0
0.0.4Initial release. LicenseMIT |