Bookmark Add-In

This article was contributed by Jignesh Patel.

Overview of the Add-In:

The feature to set bookmarks (using Ctrl-F2) in a text file available in the Dev Studio editor is very useful when going through a HUGE source file. The drawback is that, once the text file is closed you lose all the bookmarks set in that particular file and it's a pain to set tham all again.

So, anyway I guess you know what this add-in does by now. It, remembers the bookmarks set in a file (as shown below) and re-sets them back if the file is opened later in Dev Studio.

 

Installation:

  • Copy the bookmark.dll file where-ever you want (I put them in Devstudio\sharedide\AddIns).
  • In, Dev Studio, go to the Tools menu and select Customize...
  • Go to the last tab (Add-Ins and macro Files). You should be able to see the Book Mark add-in in the list box (if you saved it in the path above. If you've saved it in a different path, you'll have to browse of it yourself). Once, you checked the bookmark add-in, click close and the add-in is not ready.

Usage:

The add-in runs without user interaction.

You do have a choice to set the options. You can enable or disable the bookmark add-in on the fly (by choosing the Bookmark command which brings up the dialog box as shown below). Disabling the bookmark add-in will not restore your bookmarks the next time you open the file.

The user also has the option of saving the bookmark locations

  1. When user closes a document OR

  2. When user saves a document (for the paranoid, like myself who thinks that Dev Studio will crash anytime for any reason)

The delete file button simple purges any bookmark locations that you might have accumulated during your long hours of coding.

Un-Installing:

Un-check the bookmark addin. Delete, the bookmark.dll and also, a file called bookmark.dat (which is automatically created by the add-in) and is stored in devstudio\SharedIde\bin.

Known Problems:

There is one problem (actually it's a minor annoyance). Everytime, the user hits save, the editor will scroll. The cursor will remain at the same place but the text scrolls (which can sometimes dis-orient users). I'm working on this.

Also, I haven't tested this under NT, but I am assuming (and hoping) this will run just fine. If anyone finds a problem please let me know.

If you have any comments or suggestions on how to improve this please let me know. jigneshpatel@hotmail.com

Jignesh Patel

Download BookMark - 16.7KB



Comments

  • Application object?

    Posted by Legacy on 05/14/1999 12:00am

    Originally posted by: Yu D. Lu

    Jens Schacherl using the macro to approach the bookmark saving. I try to implement AddIn with C++, but I don't know how to access Application, document objects of DevStudio? Could you share the knowledge with us, or release some info/direction to us?

    Thanks

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Learn How A Global Entertainment Company Saw a 448% ROI Every business today uses software to manage systems, deliver products, and empower employees to do their jobs. But software inevitably breaks, and when it does, businesses lose money -- in the form of dissatisfied customers, missed SLAs or lost productivity. PagerDuty, an operations performance platform, solves this problem by helping operations engineers and developers more effectively manage and resolve incidents across a company's global operations. …

  • Live Event Date: December 18, 2014 @ 2:00 p.m. ET / 11:00 a.m. PT The Internet of Things (IoT) incorporates physical devices into business processes using predictive analytics. While it relies heavily on existing Internet technologies, it differs by including physical devices, specialized protocols, physical analytics, and a unique partner network. To capture the real business value of IoT, the industry must move beyond customized projects to general patterns and platforms. Check out this upcoming webcast …

Most Popular Programming Stories

More for Developers

RSS Feeds