Markdown editor for Visual Studio
Download this extension from the Visual Studio Marketplace or get the CI build.
A full featured Markdown editor with live preview and syntax highlighting. Supports GitHub flavored Markdown.
Features
- Powered by Markdig - the best markdown parser
- Syntax highlighting
- Live preview window with scroll sync
- CommonMark and GitHub flavored Markdown
- High-DPI support
- Drag 'n drop of images supported
- Paste image from clipboard directly onto document
- Outlining/folding of code blocks
- Keyboard shortcuts
- Brace completion with type-through
- Lightning fast
- Validation of relative URLs
Live Preview Window
The preview window opens up on the right side of the document when it opens.
Every time the markdown document is modified, the preview window will update.
The preview window is automatically scrolled to match the scroll position of the document. As the document is scrolled up and down, the preview window will follow.
Live preview can be disabled in the settings.
Syntax highlighting
All fonts can be changed in Tools -> Options -> Environment -> Fonts and Colors dialog.
GitHub and other flavors
Advanced markdown extensions are supported to give more features to the syntax. This includes pipe tables, emoji, mathematics and a lot more.
Drag 'n drop images
Drag an image directly from Solution Explorer onto the document to insert the appropriate markdown that will render the image.
Paste images
This is really helpful for copying images from a browser or for inserting screen shots. Simply copy an image into the clipboard and paste it directly into the document. This will prompt you for a file name relative to the document and then it inserts the appropriate markdown.
It will even parse the file name and make a friendly name to use for the alt text.
Outlining
Any fenced code and HTML blocks can be collapsed, so that this:
...can be collapsed into this:
Keyboard shortcuts
Ctrl+Alt+K Inserts a new link.
Ctrl+B makes the selected text bold by wrapping it with **
.
Ctrl+Space checks and unchecks task list items.
- [x] task list item
Tab increases indentation of list items.
Shift+Tab decreases indentation of list items.
Ctrl+K,C wraps the selection with HTML comments.
Ctrl+K,U removes HTML comments surrounding the selection/caret.
Validation
Relative URLs are validated and will show a red squiggly when they can't be resolved.
The errors will also be listed in the Error List.
Settings
Control the settings for this extension under Tools -> Options -> Text Editor -> Markdown