Search "Foam" in the VS Code extensions marketplace. Install the one from the Foam team (currently at 258k+ downloads, 43 five-star ratings). You'll get:
- Wikilinks. Write
[[my-note]]and it becomes a real link to that file. Autocomplete works. - Backlinks. For any file you open, Foam shows you every other file that links to it.
- Graph view. See your entire knowledge base as a network diagram. Every file is a node, every link is an edge.
- Daily notes. One command creates or opens today's note in a dated folder.
- Tag browser. Every
#tagbecomes searchable.
If you already have markdown files in a folder and they link to each other, Foam just works on top of them. No migration. Point it at your folder and it starts building the graph.
I use Foam when I want to stay inside VS Code but need Obsidian-like navigation.
Which brings us to the last option.
Method 4. Just use Obsidian
For anyone who spends most of their day in markdown, Obsidian is the best option.
Once you have hundreds of files with links between them, you need to see the graph. You need backlinks. You need wiki-style navigation.
Obsidian is free. It reads plain .md files. It can also read .mdx files after you install the free "mdx as md" plugin.
It opens any folder as a "vault."
You can open the same folder in Obsidian and keep VS Code and Obsidian side by side. One for coding, one for reading markdown.
My entire brain folder works as an Obsidian vault without changing a single file. Same repo. Same files. Different view.
The split I actually run:
- VS Code when I'm editing code, running scripts, or using the Claude extension to ingest new information.
- Obsidian when I'm reading, browsing, following links between notes, or looking at the graph to see how ideas connect.
Both apps hit the same files. Whatever I edit in one shows up in the other the next time I open it.
TLDR
The whole point is that markdown was designed to be readable both ways: as source and as rendered text. Your editor should let you switch between those views without friction.
Pick the method that works for you.
-
Use one of the two shortcuts.
- Cmd+Shift+V opens the rendered preview in the same tab.
- Cmd+K then V opens the preview side by side with the raw file.
-
Force preview on open with the settings snippet.
Open
settings.json(Cmd+Shift+P → "Preferences: Open User Settings (JSON)") and paste this expanded version instead:"workbench.editorAssociations": { "*.md": "vscode.markdown.preview.editor", "*.mdx": "vscode.markdown.preview.editor" }, "files.associations": { "*.mdx": "markdown" } -
Install Foam if you want to stay in VS Code but want Obsidian-like features.
-
Use Obsidian if you want the best reading experience. Open the entire project folder in Obsidian.
I run VS Code and Obsidian side by side. Both pointing at the same folder. It gives me the best of both worlds.


