[html] follow id (#) html links #59536
Labels
feature-request
Request for new features or functionality
html
HTML support issues
verification-needed
Verification of issue is requested
verified
Verification succeeded
Milestone
It would be nice if VSCode would open/follow html links to anchors (elements with id attribute).
Target in the same document
Ctrl+click could be used to scroll down/up to the target element.
<p>Link to <a href="#target">end of the page</a></p>
...
<p id="target">This is the end, my friends.</p>
Target in another document
Using Ctrl+click you can open another linked document, but the document is opened at the beginning. It would be nice if VSCode would scroll down to the target.
Document 1:
<p>Link to <a href="document-2.html#target">end of another page</a></p>
Document 2:
<p>This is the beginning.</p>
...
<p id="target">This is the end, my friends</p>
Thanking you in advance,
The text was updated successfully, but these errors were encountered: