Leave Google Docs-style inline comments on .md files, directly in VS Code.
Highlight any text, type your note, and it sticks to that passage — without touching the document itself. When you're done annotating, copy all your comments as a structured AI prompt and paste into your coding agent to get a revised draft back.
Works with VS Code, Cursor, Kiro, Windsurf, and any other VS Code-based IDE.
Option 1 — Terminal:
VS Code
curl -L https://github.com/erayalan/comment/raw/main/comment-0.1.0.vsix -o /tmp/comment.vsix && code --install-extension /tmp/comment.vsixCursor
curl -L https://github.com/erayalan/comment/raw/main/comment-0.1.0.vsix -o /tmp/comment.vsix && cursor --install-extension /tmp/comment.vsixWindsurf
curl -L https://github.com/erayalan/comment/raw/main/comment-0.1.0.vsix -o /tmp/comment.vsix && windsurf --install-extension /tmp/comment.vsixKiro
curl -L https://github.com/erayalan/comment/raw/main/comment-0.1.0.vsix -o /tmp/comment.vsix && kiro --install-extension /tmp/comment.vsixOption 2 — UI:
- Download
comment-0.1.0.vsix - Open your IDE
- Press
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux) - Type "Extensions: Install from VSIX..." and select it
- Navigate to the downloaded
.vsixfile and open it
Select any text in the preview. A cursor appears in the right gutter — start typing immediately. Click away to save.
Comments are stored in a hidden sidecar file (.filename.comments.json) next to each markdown file. Your document is never modified.
Click Copy & Save Comments to assemble all your annotations into a structured prompt. It's copied to your clipboard and saved as a versioned revision file (CommentRevisions/Revision-R1.md, R2, …). Paste into any AI — no setup required.
Every "Copy & Save" creates a permanent snapshot in the Revision History sidebar panel. Delete individual revisions when you no longer need them.
Start a fresh annotation cycle with one click. A confirmation dialog protects you from accidental deletion.
- Open a workspace containing
.mdfiles - Click the Comment icon in the Activity Bar
- Click any
.mdfile in the Markdown Files tree to open the preview - Drag to highlight text — a cursor appears in the right gutter
- Type your comment and click anywhere else to save
- Repeat across as many files as you like
- Click Copy & Save Comments (toolbar icon in the sidebar)
- Paste the clipboard into your AI tool of choice
Comments are stored as sidecar JSON files:
your-project/
├── notes.md
├── .notes.md.comments.json ← comments for notes.md (auto-created)
└── CommentRevisions/
├── Revision-R1.md
└── Revision-R2.md
Sidecar files can be committed to version control to share annotations with teammates. The CommentRevisions/ folder is hidden from the VS Code Explorer but tracked by Git.
For real-time collaborative annotation, use VS Code Live Share:
- The host opens the workspace and starts a Live Share session
- Guests join via the shared link — no extra setup needed
- Any participant can open the Comment preview panel and leave comments
- Comments are written to the host's sidecar files and are immediately visible to all participants in the session
This requires one team member to be the active host. For async workflows (no live session), commit the .comments.json sidecar files to Git so teammates can pull and see each other's annotations.
- VS Code 1.74.0 or higher
- A local workspace folder (remote workspaces not supported in this version)
This extension does not add any settings. The CommentRevisions/ folder is automatically hidden from the Explorer on activation.
- Comments are plain text only (no markdown formatting inside comments)
- If a
.mdfile is renamed, existing comments are not migrated automatically - Real-time collaboration requires VS Code Live Share (see Team Collaboration)