Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>markdown-viewerNew to Visual Studio Code? Get it now.
markdown-viewer

markdown-viewer

Julien Croain

|
21,177 installs
| (0) | Free
VSCode extension to open a markdown viewer from a string instead of an editor.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

markdown-viewer

VSCode extension to open a markdown viewer from a string instead of an editor.

Features

Open markdown viewer from a string:

vscode.commands.executeCommand("markdown-viewer.openViewer", {
    content: '# My extension'
}).then(id => {
    // id is an identifier of the viewer if you want to update it
    return vscode.commands.("markdown-viewer.openViewer", {
        id: id, // if the viewer has been closed a new viewer will be created
        title: 'My preview', // title of the preview
        column: vscode.ViewColumn.One, // Where to show the webview in the editor
        content: '# My extension' // markdown content
    })
})

Release Notes

1.0.0

Initial release of the extension.

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft