This extension now supports inline comments in markdown files, similar to Google Docs!
- Select any text in a markdown file
- Right-click and select "Add Comment" or press
Ctrl+Shift+M(Mac:Cmd+Shift+M) - Enter your comment in the input box
- The selected text will be tagged with
[a],[b],[c], etc.
- Hover over any
[x]tag to see the comment - The hover popup shows:
- The original selected text
- The comment text
- Edit and Delete buttons
- Hover over a comment tag and click "Edit"
- Or place cursor on a tag and use the command palette: "Comments: Edit Comment"
- Update the comment text
- Hover over a comment tag and click "Delete"
- Or place cursor on a tag and use the command palette: "Comments: Delete Comment"
- Confirm the deletion
- Orphan tags (comments without inline references) are automatically removed when you save the file
Comments follow the Google Docs export format:
This is some text with a comment[a] and another one[b].
More text here.
[a]This is the first comment
>>This is some text with a comment
[b]This is the second comment
>>and another oneThe >> prefix stores the originally selected text for reference.
- Open a markdown file
- Select text: "He swirled his glass"
- Right-click → "Add Comment"
- Enter: "Great imagery!"
- Result: "He swirled his glass[a]"
At the end of the document:
[a]Great imagery!
>>He swirled his glass
Ctrl+Shift+M(Mac:Cmd+Shift+M): Add comment to selected text
- Comments are only available in markdown files
- Comment tags are automatically generated as
[a],[b],[c], etc. - Tags are decorated with a subtle background and a 💬 icon
- Comments are preserved when exporting to other formats
- Compatible with Google Docs export format