Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CodeCommentsNew to Visual Studio Code? Get it now.
CodeComments

CodeComments

Preview

Vicente Gutierrez

|
3 installs
| (1) | Free
Add personal annotations/comments to code lines without modifying the source files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CodeComments

Preview - This extension is in early development. Features may change.

Add personal annotations and comments to your code without modifying the source files. Comments are stored separately in your workspace and persist across sessions.

Features

  • Add comments to any line or range of lines - Select code, right-click, and add your annotation
  • Visual indicators - Commented lines show a green wavy underline
  • Hover to view - Hover over the underlined code to see your comment
  • Edit and delete - Right-click on commented lines to modify or remove comments
  • Persistent storage - Comments are saved in .codecomments/comments.json in your workspace

Usage

  1. Select one or more lines in the editor
  2. Right-click and choose "CodeComments: Add Comment"
  3. Enter your comment text
  4. Hover over the underlined line to view the comment

To edit or delete a comment, place your cursor on a commented line and right-click.

Storage

Comments are stored locally in your workspace:

your-project/
└── .codecomments/
    └── comments.json

You can add .codecomments/ to your .gitignore to keep comments private, or commit it to share with your team.

Requirements

  • VS Code 1.108.1 or higher

Known Issues

  • Comments are tied to line numbers. If you add/remove lines above a comment, the comment may point to the wrong line.

Release Notes

0.0.1

Initial preview release:

  • Add, edit, and delete comments
  • Wavy underline decoration
  • Hover tooltips
  • JSON file storage
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft