7

I use Delphi for many years, and although I have now moved on to Visual Studio I still fondly remember numbered bookmarks (CTRL+K+1 to set bookmark 1, CTRL+Q+1 to goto bookmark 1).

Is there a Visual Studio equivalent? I'm find the dumb bookmarks in VS a chore after Delphi. I want to bookmark then return to a specific place in the file.

1

8 Answers 8

14

DPack can give you numbered bookmarks in VisualStudio.

2
  • 1
    +1 for excellent DPack. It gives so many things to Visual Studio - VS developers have no idea how much easier life can be. (Like thinking a command line is great, without having used a GUI)
    – Ian Boyd
    Dec 25, 2011 at 14:45
  • Just installed DPack and have the numbered bookmarks. Do you know how to set the color DPack bookmarks use? Feb 16, 2017 at 13:44
4

Ctrl K + Ctrl K - Add/Remove Bookmark on Line
Ctrl K + Ctrl N - Go to Next Bookmark
Ctrl K + Ctrl P - Go to Previous Bookmark

There are other options as well. Look under Edit->Bookmarks menu,

1
2

More a comment on your original question than an actual answer but Delphi has had much easier to remember (and type) keyboard shortcuts than what you quote available for quite some time now:

  • Set bookmark 1: Ctrl-Shift-1

  • Go to bookmark 1: Ctrl-1

If you ever go back to Delphi, this should make your life so much easier! ;)

1

Just to amplify Lars Truijens answer. DPack is a GExperts like plugin for visual studio. I found it great help when moving from the Delphi IDE to Visual Studio.

1

I find this one also very useful: CtrlK + CtrlL - Clear alll bookmarks

1

There is a Bookmark Window. Go to menu View/Bookmark Window (Ctrl+K, Ctrl+W).

In there you can see all your bookmarks and rename them. That is a lot better than just seeing the numbers.

For some reason they don't allow to order that list by clicking in a column header, but you can drag the bookmarks and accommodate them in the order you want.

0

VSBookmarks gives something like the fantastic Delphi bookmarks feature. Tested and works in Visual Studio 2019.

  • Extensions > Search "VSBookmarks" (v1.7 at time of writing)
  • Install and restart Visual Studio
  • Use Ctrl + Shift + N to set a bookmark
  • Use Ctrl + N to move to a previous bookmark

There will likely be conflicts with existing keyboard shortcuts. To view and edit these:

  • Tools > Options > Environment > Keyboard
  • In "Press shortcut keys" type Ctrl + Shift + 1
  • See which command(s) are currently assigned to the shortcut
  • Find the command in the list and remove the shortcut
  • Repeat for Ctrl + Shift + 1 through Ctrl + 9

VSBookmarks applies only within the current file (which is the Delphi behaviour), but is not configurable with just a single colour for the bookmark.

Delphi is an awesome language and editor. Thanks to Sergey Vinyar and Alessandro Fragnani (for the Numbered Bookmarks extension in Visual Studio Code) for keeping the flame alive.

0

I use:

  • CTRL-F2 toggle bookmark
  • F2 next bookmark
  • SHIFT-F2 previous bookmark
  • CTRL-SHIFT-F2 clear all bookmarks

BTW, after using Visual Studio for years I just found about a couple of months ago that you can press ALT and drag mouse to mark a column or a square.

Not the answer you're looking for? Browse other questions tagged or ask your own question.