Issue #128 (Markdown Header Link Completions)10/02/24
|
Techpresso includes a good dose of tech tools and programming-related apps and resources. Join 30,000+ professionals from OpenAI, Meta, Google, Microsoft, Hugging Face, JP Morgan, and more.
Subscribe for Free →
|
|
Early last year, VS Code added
Markdown workspace header link completions when working with multiple Markdown files in a single workspace (for example, when writing an e-book with multiple chapters in VS Code).
This feature allows you to use autocomplete to add links to any header in any of the files. When creating a Markdown link, type ## to see a list of possible link completions.
Notice the above screenshot displays a bunch of possible links in the local file when I type the double hash where I want to insert the link. But if I scroll further down, I can also choose from links in other Markdown files in the same document.
Notice the page indicators on the right of each of the link suggestions. The current document in the above screenshot is "chapter2.md", so that chapter isn't explicitly indicated. The chapter two links, of course, are the local links in the previous screenshot. So this goes beyond the ability to add internal links and allows you to add links to any of the headings in any document. Very useful!
There is one setting that allows you to customize this behaviour, if needed. Search for
includeWorkspaceHeaderCompletions in your settings.
This allows you to adjust whether the suggestions appear with a single hash, double hash, or never.
Now on to this week's hand-picked links!