Friday, February 4, 2011

Visual Studio equivalent to Delphi bookmarks

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, CRTL+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.

  • 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,

    From Vaibhav
  • I find this one also very useful: Ctrl K + Ctrk L - Clear alll bookmarks

    From Hershi
  • 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.

  • Thanks for the shortcuts people but I was after a plug in or some such that allowed me to number the bookmarks or identify them in some way and go directly to the one I'm interested in rather than having to step one by one through all the others.

    Any ideas?

  • DPack can give you numbered bookmarks in VisualStudio.

  • 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.

    From John Nolan
  • 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! ;)

    Cheers,

    Oliver

0 comments:

Post a Comment