DevNoteNotes in your code. GitHub · Issues · How to use · Install · Quick start How to use
DevNote is a Visual Studio Code extension that attaches these rich notes to specific lines in your project. Notes are stored in your workspace so they stay with the codebase—ideal for design decisions, TODOs, reviews, and documentation that belongs next to the code. Table of contents
Features
InstallationFrom a
|
| Command | ID | Description |
|---|---|---|
| Write Note | devnote.writeNote |
Open the note editor for the current selection (new note). |
| New Note from Selection | devnote.newNoteFromSelection |
Same as above; shows an error if no text is selected or no editor is active. |
| Open Note | devnote.openNoteForLine |
Open the note for the current line (or pick one if several exist). |
| Delete Note | devnote.deleteNote |
Delete a note (e.g. from context where bound). |
| Go to Line | devnote.navigateToNote |
Jump editor to a note’s file and line. |
| Edit Note | devnote.editNote |
Available where exposed (e.g. palette). |
| Refresh | devnote.refresh |
Reload DevNote config and refresh decorations. |
Keyboard shortcuts
| Keys | Command | When |
|---|---|---|
| Ctrl+Shift+N / ⌘⇧N | Write Note | Text is selected in the editor |
You can change shortcuts in File → Preferences → Keyboard Shortcuts and search for devnote.
Where data is stored
Everything lives under <your-workspace>/.devNote/. If you previously used .DevNote (capital D), the extension renames that folder to .devNote the next time it loads your notes (same contents; one-time migration).
| Path | Content |
|---|---|
.devNote/config.json |
Index of notes (file, line, title, image list, etc.) |
.devNote/notes/*.md |
Note bodies (Markdown files) |
.devNote/images/* |
Attached images |
Add .devNote/ to .gitignore if notes are private, or commit it if your team should share them.
Right-to-left text (Persian / Arabic)
Titles, note bodies, the code snippet panel, and sidebar titles use automatic direction when the text contains Arabic-script characters, so Persian and Arabic notes are readable RTL in the UI.
Images
- In the note editor, use Upload or paste an image from the clipboard.
- Click a thumbnail to open the image file in an editor tab (full preview).
Troubleshooting
| Issue | What to try |
|---|---|
| No pencil in the gutter | Enable the glyph margin: Settings → search editor.glyphMargin → enable Editor: Glyph Margin (same area as breakpoints / lightbulb). |
+ does nothing |
Ensure a file tab is active, not only the sidebar; select non-empty text first. |
| Notes missing after clone | .devNote may not be in the repo; check Where data is stored. |
| Wrong line after big edits | Line tracking follows simple insert/delete; complex refactors may need you to re-open or move notes manually. |
Development
git clone https://github.com/mortezadalil/DevNote.git
cd DevNote
npm install
npm run compile
Press F5 in VS Code with this folder opened to launch an Extension Development Host and debug the extension.
Build a redistributable package:
npm run pack
# creates devnote-<version>.vsix
Publishing
- Create a Marketplace publisher. The
publisherfield inpackage.jsonmust match your publisher ID. - Create an Azure DevOps Personal Access Token with Marketplace (Manage) scope; login:
npx @vscode/vsce login <publisher>. - Publish:
npx @vscode/vsce publish, or upload the.vsixon the manage page. - Optional: add a 128×128 PNG as
iconinpackage.jsonfor the store listing.
License
Made for developers who want notes in their code.