Noteflow - Synced Markdown Notes
Get it from the Visual Studio Marketplace
Keep a folder of Markdown notes in the side bar of VS Code, and have it follow you to every machine where you sign in to Settings Sync.
What it is
Noteflow adds a My Notes tree, backed by any folder on disk, plus an optional Project Notes tree for notes that live inside the current workspace (.notes by default). Create, rename, move, delete and search notes without leaving the side bar.
Why
|
A notes extension without sync |
Noteflow |
| Works on one machine |
Yes |
Yes |
| Follows you to another machine |
No, manual copy |
Yes, automatic |
| Needs a cloud account |
Sometimes |
No, reuses Settings Sync |
| Keeps edits made on two machines |
N/A |
Yes, newest wins, the other kept as a conflict copy |
How sync works
Machine A Machine B
┌───────────┐ ┌───────────┐
│ My Notes │ │ My Notes │
│ (disk) │ │ (disk) │
└─────┬─────┘ └─────┬─────┘
│ │
└───▶ Settings Sync ◀──────────┘
(noteflow.syncedNotes)
Noteflow doesn't talk to any server of its own. It stores the content of every note in a bit of
globalState (noteflow.syncedNotes) that is marked with setKeysForSync, so VS Code's own
Settings Sync carries it to every machine signed in to the same account, the same mechanism
that syncs your settings and keybindings.
What a sync does, step by step:
- Pull: ask Settings Sync to sync with your account right away (the same as running
Settings Sync: Sync Now), so the notes saved on your other machines are here before
anything is compared.
- Read every note currently on disk in the My Notes folder (skipping hidden files/folders,
anything outside
noteflow.fileTypes, and anything over 256 KB or binary).
- Compare that to the synced copy (
syncedNotes) and to a local "base" snapshot of hashes saved
after the previous sync on this machine.
- For each note, work out what changed since that base, on this machine and/or on another one:
- Only here changed → push this machine's content (or push a delete) to the synced copy.
- Only elsewhere changed → write that content to disk here (or delete the local file).
- Unchanged everywhere → nothing to do.
- Changed on both sides → the newest edit (by modified time) keeps the file name; the
older one is written next to it as
name (conflict YYYY-MM-DD).md and pushed too, so nothing
is silently lost.
- A brand-new machine (empty local base) never deletes anything; it just merges both sides.
- Deletes are remembered as a "tombstone" for 30 days (long enough for every machine to come
online and see it), then forgotten.
- Save the new base snapshot for next time.
- Push: if this machine changed anything in the synced copy, ask Settings Sync to sync again
so the change reaches your account immediately instead of minutes later.
When a sync happens:
- When you save an edited note inside My Notes yourself:
Ctrl+S (Cmd+S), the save icon or
File > Save. Auto save and saving a file with no changes don't sync. The status bar shows
"Noteflow: syncing..." and then "Noteflow: synced" (or "sync failed").
- On demand via Sync Now (also the way to pick up changes from another machine without saving).
Both pull from and push to your Settings Sync account right away, see
Pull and push, like a remote server.
- When you select a note in My Notes, by clicking it in the side bar or switching to its editor tab.
The status bar shows "Noteflow: checking for changes..." and the note is updated if another
machine changed it. Selecting notes again within 10 seconds doesn't check again.
- Once, automatically, on a new machine as soon as Settings Sync delivers your notes (right after
you sign in).
Creating, renaming, moving or deleting notes, changing settings or switching windows don't sync
on their own; those changes go out with the next save, note selection or Sync Now. Several saves in a row
are coalesced (~0.6 seconds), and only one sync runs at a time.
Pull and push, like a remote server
Settings Sync on its own is lazy: it uploads and downloads in the background every few minutes, so
a note saved on laptop B could take a while to show up on laptop A even after Sync Now. To make
it behave almost like a remote server (think git pull + git push), every Noteflow sync talks to
your Settings Sync account directly:
| You do this |
On this machine Noteflow... |
Save an edited note (Ctrl+S) |
pulls from the account, merges, then pushes your edit to the account right away |
| Select a note in My Notes |
the same check, so you rarely need Sync Now (at most once every 10 seconds) |
| Sync Now |
pulls from the account, writes new or changed notes to disk, pushes local edits |
| Nothing |
nothing: other machines' edits wait on the account until your next save, selection or Sync Now |
A typical round trip between two laptops:
- Laptop B: edit
test.md and press Ctrl+S → status bar "Noteflow: synced". The edit is now
on your account, not just inside laptop B.
- Laptop A: click
test.md (or Sync Now) → Noteflow pulls from the account and test.md on
disk is updated.
If test.md is open and unchanged in the editor, VS Code reloads it; if you also had unsaved
edits there, save them and you get the newest version plus a (conflict ...) copy.
How the machines talk to each other, in short: they never talk directly. Each VS Code talks
only to your Settings Sync account (Microsoft or GitHub), which acts as the shared server:
Laptop B --save--> push --> Settings Sync account --> pull <--select / Sync Now-- Laptop A
Noteflow keeps every note in one synced value (noteflow.syncedNotes); a push uploads it, a pull
downloads the latest one, and the 3-way merge above decides what to write to disk.
Each sync takes a second or two longer than before because of this round trip. If Settings Sync
is off, signed out or offline, Noteflow still merges with whatever VS Code already has and
Settings Sync uploads it later on its own; nothing is lost, it is just slower. A sync never waits
more than 20 seconds for Settings Sync.
Only the folder configured in noteflow.folder (My Notes) is ever synced. Project Notes live
inside the workspace and never leave it.
Set up on your first computer
- Install Noteflow.
- Turn on Settings Sync with Extensions checked.
- Choose a notes folder for My Notes.
Set up on another computer
- Turn on Settings Sync, signed in to the same account, with the same Noteflow version installed.
- That's it: as soon as your synced notes arrive, Noteflow writes them to
~/Noteflow (or to the
folder in noteflow.folder, if you set one) and shows a short message in the status bar. No prompt.
What is and isn't synced
- Only My Notes, not Project Notes.
- Text files up to 256 KB.
- Hidden files (starting with
.) and binary files never sync, and stay local only.
Features
- Two side bar views: My Notes and Project Notes.
- Create, rename, move (drag and drop or Move To...), and delete notes and folders.
- Quick Open across both views, most recently opened first.
- Search scoped to your notes.
- Sort by name, modified or created date.
- Markdown preview, reveal in file explorer.
- Automatic refresh when files change outside VS Code.
Shortcuts
| Shortcut |
Command |
Alt+N |
New Note |
Alt+L |
Quick Open Notes |
Settings
| Setting |
Default |
Meaning |
noteflow.folder |
"" |
Folder for My Notes. ~ expands to the home folder. |
noteflow.projectFolder |
.notes |
Folder for Project Notes, relative to the first workspace folder. |
noteflow.defaultExtension |
md |
Extension added to a new note when none was typed. |
noteflow.newNoteName |
"" |
Name pre-filled when creating a note. Tokens: {yyyy} {mm} {dd} {HH} {MM}. |
noteflow.fileTypes |
* |
Comma-separated extensions shown and synced, or * for all. |
noteflow.sort |
name |
name, name-desc, modified or created. |
noteflow.sync |
true |
Sync My Notes through Settings Sync. |
noteflow.refreshSeconds |
5 |
Polling interval for outside changes while a view is visible. |
FAQ / troubleshooting
My notes from another machine never showed up. Make sure Settings Sync is on with Extensions included, and that both machines are signed in to the same account with the same Noteflow version.
I saved on one machine but Sync Now on the other doesn't bring the edit. Check the status bar on the machine you saved on said "Noteflow: synced", and that Settings Sync on both is turned on and not showing an error or a conflict (Accounts icon, bottom left). Running Settings Sync: Show Log shows whether the upload and download happened.
A note is missing after syncing. Check it wasn't larger than 256 KB, binary, or inside a hidden folder; those never sync.
I see a (conflict ...) file. The note was edited on two machines before they synced; the newest version kept its name, the other was kept as a copy so nothing is lost.
License
MIT