Leave private notes on your code without modifying the source file.
Shadow Comments allows you to annotate code with "sticky notes" that only you can see.
- Great for reading complex open-source code.
- Great for marking TODOs you don't want to commit to Git.
- Your annotations do not touch the actual file.
- Private Annotations: Add comments that exist only in your VS Code editor.
- Toggle Visibility: Hide all comments with one click to see clean code.
- Persistent: Comments stick around even after you restart VS Code.
- Click on any line of code.
- Press
Shift + Alt + C(Mac:Shift + Cmd + C). - Type your note and hit Enter.
- Add Comment:
Shift + Alt + C - Delete Comment:
Shift + Alt + D - Toggle Visibility:
Shift + Alt + V