How do I link from Markdown to specific symbol in a code file in VSCode?

Viewed 439

VSCode allows for navigating to specific symbol (function, variable, or other) with ⌘+t or ctrl+t or by typing a # symbol in the command window. I'm working on some markdown documentation. VSCode allows for following relative links in markdown; the following would take one to the line 33 in the foo file ./foo.js#L33. Is there a way to leverage VSCode's linking using a different anchor to navigate directly to a symbol, e.g. ./foo.js#myFunc?

1 Answers

Although this feature would be really useful, there is no way to do this, unfortunately.

Related