Are there bookmarks in Visual Studio Code?

How to set bookmarks in Visual Studio code? I can not find any keyboard shortcuts.

Or can I use anything else?

+199
visual-studio-code
May 12 '15 at
source share
6 answers

Yes, with the help of extensions. Try bookmark extension on marketplace.visualstudio.com

Press Ctrl + Shift + P , type install extensions and press enter, then type Bookmark and press enter.

enter image description here

You can then configure which keys are used to bookmark and navigate to it. For this, see this question .

+236
Dec 02 '15 at 16:47
source share

You must do this through an extension starting with version 1.8.1.

  1. Go to View> Extensions. The extension panel opens.

  2. Enter bookmark to get a list of all related extensions.

  3. set




I personally like Numbered Bookmarks - it's pretty simple and powerful.

Go to the line, you need to create a bookmark.

Press Ctrl + Shift + [number]

Example: Ctrl + Shift + 2

Now you can go to this line from anywhere by pressing Ctrl + [number]

Example: Ctrl + 2

+32
Jan 20 '17 at 6:56
source share

Visual Studio Code does not currently support bookmarks. Please add this as a feature request to our list of Git Hub issues ( https://github.com/Microsoft/vscode ).

At the same time, there are several ways to navigate the code based on your navigation history. You can Ctrl + Tab to quickly jump to previously opened files. You can also navigate your code based on cursor positions using Goto | Go Back and Go | Forward.

+16
May 12 '15 at 5:00
source share

You can use both VS Code extensions:

  1. Bookmarks
  2. Numbered Bookmarks

Personally, I suggest: numbered bookmarks , with the option "go through all files":

  1. ctrl + Shift + P in VS code
  2. In the new open field, enter: Open user settings
  3. Paste this key / value: "numberedBookmarks.navigateThroughAllFiles": "allowDuplicates" (allow duplicate bookmarks)
  4. Or paste this key / value: "numberedBookmarks.navigateThroughAllFiles": "replace"

NOTE

In any case, be careful with the shortcuts ( Ctrl + 1 , Ctrl + Shift + 1 , ..) that are already assigned.

Personally, I had 2 conflicts, moreover:

  1. VS Code Shortcuts That Already Exist
  2. The same thing in the clipboard (I have an paste every time I bookmark)
+5
May 4 '18 at 11:32
source share

The bookmark extension mentioned in the accepted answer conflicts with switching breakpoints through margin.

You can use breakpoints as bookmarks and select the debug tab on the left to see a list that references the given lines. I requested shortcuts to navigate points without execution.

+4
Aug 01 '17 at 9:41 on
source share

Under the general heading "editors always forget that the document is leaving ..." to switch, go to another line and press the key combination ctrl + shift + 'N' to erase the current bookmark, do the same on the marked line ...

-one
Dec 10 '18 at 18:59
source share



All Articles