Answer the question
In order to leave comments, you need to log in
How to place anchors / labels in the code in Visual Studio Code and quickly rewind between them?
Good day.
I use VSCode for web programming and increasingly I have to deal with files that have a lot of lines. Scrolling by scrolling the mouse wheel or dragging the scroll bar (the bar that moves near the right edge of the window when scrolling) or dragging the view/camera/rectangle on the Minimap is not always convenient.
I would like to know if there is any function or extension so that you can place some "anchors" or "labels" in the file on different lines and then use the keyboard shortcut to navigate these labels back and forth so that the workspace scrolls the code view to the branch being moved.
PS
Yes, you can, of course, do something similar by placing comments with a certain structure and words in the right places, and then using the text search to navigate, scroll to the necessary sections of the code, but when working in a team, add some left ones to the code that you only need comments are a bad idea.
Answer the question
In order to leave comments, you need to log in
I'm using Numbered Bookmarks
add
bookmark Ctrl+Shift+1...9
jump to bookmark Ctrl+1...9
I use this application - Bookmarks
Reassigned to Ctrl + PgUp, Ctrl + PgDwn for moving up and down through bookmarks - I'm fine
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question