QuickBookmarks - Easy way to navigate in your code | CodeGuru

QuickBookmarks – Easy way to navigate in your code

It is a hard work to switch among several functions all day long. That is why I wrote several functions to ease this common task. You can define up to 10 hotkeys, each bound to specific place  in your code. These bookmarks can be saved and reloaded in any time. I am using unnamed bookmarks, […]

Written By
CodeGuru Staff
CodeGuru Staff
Mar 23, 1999
2 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

It is a hard work to switch among several functions all day long. That is why I wrote
several functions to ease this common task.

You can define up to 10 hotkeys, each bound to specific place  in
your code. These bookmarks can be saved and reloaded in
any time.
I am using unnamed bookmarks, so they stay valid after insertion
or removal of previous lines.

Remarks:

  • Select meaningful text and press hotkey to set
    bookmark
  • Make sure that there is no selected text in the line and press the
    hotkey to go to the bookmark
  • Use  ‘Alt+Num1‘, ‘Alt+Num2‘,… hotkeys for  bookmarks, ‘Alt+Num-
    –  to clear current bookmark, and   ‘Alt+Num/‘ for list of 
    bookmarks, if you do not have better idea
  • Do not set unnamed bookmarks by using standard SetBookmark function
  • Do not remove text with bookmark, redifine this bookmark at first
  • Do not forget to save you bookmarks, they are saved only after you
    press ‘Yes’ in the list of bookmark dialog
  • Call list of bookmarks if you forget the number

Look at http://members.tripod.com/~DanKozub
to see screenshots.
Any comments and suggestions will be appreciated.

History:
v 1.1:  A function to display list of all bookmarks was added. Assign ‘Alt+Num/
hotkey to ShowQuickBookmarks()
v 1.2:  It is now possible to simply clear bookmark instead of resetting it. Assign ‘Alt+
Num-
‘ hotkey to ClearCurrentBookmark()

Download source – 2 KB

Date Last Updated: March 23, 1999

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.