Or in VSCode: Cmd+Shift+P → "Extensions: Install from VSIX..."
From Source
git clone https://github.com/huyansheng3/markdown-comment.git
cd markdown-comment/packages/packages/vscode-extension
npm install
npm run package
code --install-extension markdown-comments-0.2.0.vsix
📖 Usage
Adding Comments
Open any .md file — preview opens automatically
Select text in the preview area
Click the 💬 button in the floating toolbar
Type your comment and press Cmd+Enter to submit
Viewing Comments
Click 💬 in the bottom status bar to toggle the comments panel
Click highlighted text to see associated comments
Comments panel shows all threads with open/resolved status
Outline Navigation
Hover the left edge of the preview to reveal the outline
Click 📑 in the bottom status bar to pin the outline panel
Click any heading to smooth-scroll to it
Resolving Comments
Open the comments panel
Click "✓ Resolve" on any open comment thread
⚙️ Configuration
Setting
Default
Description
markdownComments.preview.openPreviewOnOpen
true
Auto-open preview when opening a .md file
markdownComments.preview.showComments
false
Show comments panel by default
markdownComments.preview.showOutline
false
Show outline panel by default
markdownComments.comments.highlightColor
rgba(255, 212, 0, 0.2)
Highlight color for open annotations
markdownComments.comments.resolvedHighlightColor
rgba(0, 200, 0, 0.1)
Highlight color for resolved annotations
⌨️ Keyboard Shortcuts
Shortcut
Command
Cmd+Shift+V / Ctrl+Shift+V
Open Preview to Side
Cmd+Enter
Submit comment (in comment input)
Escape
Cancel comment input
🗨️ Comment Syntax
Comments are stored inline in the Markdown source using <annotation> tags:
<annotation id="c1" status="open">
This text has comments attached.
<comment by="human" time="2026-03-21T08:00:00Z">
Consider rephrasing this section.
</comment>
<comment by="ai" time="2026-03-21T08:01:00Z">
Good suggestion! Updated.
</comment>
</annotation>