π Link between comments in code. Create anchors and jump to them from anywhere
-
Add an anchor comment where you want to jump to:
[[AnchorID|Some anchor]] -
Reference it elsewhere:
[[#AnchorID|Go to anchor]] -
Click the link while holding Ctrl (Cmd on macOS) to jump to the anchor. The Anchors view shows all anchors across your workspace
-
Basic Link β Anchor interaction:
-
Anchors view (tree of all anchors):
-
Markdown Preview with anchors and links support:
β¨ Supports back/forward navigation, live reload on file changes, and opens linked Markdown files within the same preview
- π Anchors tree view to browse anchors across files
- π― Inline links in comments that jump to anchors
- ποΈ Smart decorations to highlight only the preview text
- π Copy anchor ID from the Anchors view
- π Markdown Preview with anchors and links support
- π Ignore files on all levels (
.gitignore,.commentlinkingignore,.git/.commentlinkingignore)
C(.c)C#(.cs)C++(.cpp, .cxx, .cc, .hpp, .h)Clojure(.clj, .cljs, .cljc)CSS(.css, .scss, .sass, .less)Dart(.dart)Dockerfile(Dockerfile, dockerfile, Dockerfile.*)Go(.go)HTML(.html, .htm) - supportsHTML,JavaScript, andCSScommentsJava(.java)JavaScript(.js)JavaScript React(.jsx)JSON(.json)JSON With Comments(.jsonc)Kotlin(.kt, .kts)Makefile(Makefile, makefile, .mk)Markdown(.md) - full text supportPHP(.php)PowerShell(.ps1, .psm1, .psd1)Python(.py)Ruby(.rb)Rust(.rs)Shell(.sh, .bash, .zsh)Svelte(.svelte)Swift(.swift)TOML(.toml)TypeScript(.ts)TypeScript React(.tsx)Vue(.vue)XML(.xml)YAML(.yaml, .yml)
- Scans all workspace folders for supported file extensions
| File | Works | Priority | Note |
|---|---|---|---|
.gitignore |
by default | lowest | Disable via commentLinking.useGitignore setting |
.commentlinkingignore |
always | medium | Project-level exclusions |
.git/.commentlinkingignore |
always | highest | Local exclusions, not tracked by git |
- Search for
Comment Linkingin VS Code Marketplace and install - Reload
VS Codewindow (you'll be prompted on first install)
To install a manually built version (Snapshot Build):
β οΈ This requiresNode.jsandpnpminstalled on your machine
git clone https://github.com/kratiuk/commentlinking.git
cd commentlinking
pnpm install
pnpm package # This will generate a .vsix fileThen in VS Code: Extensions β ... β Install from VSIX... and select the generated file
To view detailed indexing logs and performance information:
- Open VS Code Output panel (
View > Output) - Select "Comment Linking" from the dropdown
- Watch real-time indexing progress and timing information
- π Add support for creating anchors and links without preview text in backlinks
- π Add sorting by line numbers in anchor tree view
- βοΈ Add support for custom comment types for specific files
- π¨ Add functionality to configure anchor and link styles
- π·οΈ Add button in anchor tree to toggle between displaying anchor IDs and preview text
- π Add support for displaying all links to a specific anchor in the editor
- π Add and host comprehensive documentation
- π Create Markdown preview with link and anchor support
- π§΅ Support multiline comments (block and triple-quote styles)
- π Add more languages (e.g.,
Go,Rust) and support.jsx/.tsx - π Add support for using
.gitignorefile as default exclusion file
Made with π‘ by Viktor Kratiuk



