Highlight code and attach personal notes in VS Code. Annotations are stored locally by repository and Git branch.
Quick start
Select code, right-click, and choose Mark My Code → Highlight or Add Note….
Open Note Preview from the editor toolbar, then click an annotated line to read its note.
Open Mark My Code in the Activity Bar to find or edit annotations.
Shortcuts
Hold Option+Shift on macOS or Alt+Shift on Windows and Linux.
Key
Action
L
Highlight selection
N
Add a note
P
Show Note Preview
V
Show or hide annotations
Find highlight colors and display options in Settings → Mark My Code. If an annotation is marked Detached, select its new location and click Reattach in the sidebar.