The February 2017 (version 1.10) release notes for Visual Studio Code describes something they call "Fragment link navigation for Markdown." Here is the description:
"Links to Markdown files that include a fragment will now try to open the file at the corresponding header:
* [Section](#_header)
* [Another file](./other_file#_header)
# Header
...
This allows quickly navigating documentation directly within the VS Code editor."
I've searched for any more information on this topic but haven't found anything. Fragments in Markdown? I didn't know that was possible. Can someone point me to more information?
I implemented this feature. Sorry for the unclear documentation
In 1.9, we added support for ctrlclick on links in the markdown editor to open the corresponding document.
Ctrl clicking [this link destination](./other_file.md) will open `other_file.md` in the editor
1.10 added support for navigating to a specific header in the current markdown file
Ctrl clicking [this link destination](#header) will scroll to # Header
...
# Header
You can also use this across files:
Ctrl clicking [this link destination](./other-file.md#header) will open `other-file.md` and scroll to `#header`
This allows navigating markdown based documentation entirely within the editor. Here's the feature in action:
If you run into any bugs or have any feature suggestions for VSCode markdown support, please let us know: https://github.com/Microsoft/vscode/issues/new
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With