Abby - Abbreviation expader

Abby is an add-in to Microsoft Developer Studio 97. It expands abbreviations like "abb" in good old vi.
For example, "w" can be expanded to:
    while () {
    }

Please send bug reports and suggestions to yonat@usa.net. Latest version available at http://www.kinetica.com/home/yon/4dev/.

Disclaimer:

This software is provided as-is. Don't blame me if it trashes your source files, your system, or your life.

Install/Uninstall

  1. Copy Abby.dll to you add-ins folder of Developer Studio:
    (c:\program files\devstudio\sharedide\addins
  2. Copy the *.abb files to your Windows folder (Sorry).
  3. In Developer Studio, go to the "Tools" menu and select "Customize...".
  4. Go to the "Add-ins and Macro Files" tab (the last one). Mark the checkbox next to "Abby" as checked, and click "Close".
  5. Developer Studio adds a new toolbar with the Abby button. You can move this button to another toolbar by pressing the Alt key while dragging the button.
To deactivate Abby, perform steps 3-4, but uncheck the checkbox next to Abby. To completely uninstall Abby:
  1. Exit Developer Studio.
  2. Delete Abby.dll from your Developer Studio add-ins folder.
  3. Delete the *.abb files from your Windows folder.

Usage

Type an abbreviation and press Ctrl+Shift+Space or click the Abby button. Abby will complete it for you.
To add or change the abbreviations, you will need to edit the abbreviations files. There is a separate abbreviations file for each language:
  • C.abb - C/C++
  • Java.abb - Java
  • VB.abb - Visual Basic
  • HTML.abb - HTML
  • None.abb - Everything else
All abbreviations files should be in the Windows folder.

Abbreviations File Format

An abbreviation file contains a series of abbreviations followed by their expansions. Each abbreviations is written in a single line, starting with "@@" and then the abbreviation itself. All the following lines (up to the next line starting with "@@") are the expansion.For example:
@@w
while () {
}
@@f
for (;;) {
}
You can specify where the cursor will be placed after the abbreviation is expanded by using typing "!!" in the desired position. For example:
@@w
while (!!) {
}
If you type "!!" in two positions, the entire text between them will be selected after the expansion. For example:
@@w
while (!!condition!!) {
}

Acknowledgements

Mark Bartosik helped me solve a nasty COM reference leak. Thanks Mark!

Download Abby - 20KB



Comments

  • New version 1.5 available

    Posted by Legacy on 12/25/1999 12:00am

    Originally posted by: Yonat Sharon

    You can get the new version from http://ootips.org/yonat/4dev/Abby15.zip

    It will only work for Visual C++ 6. If you had an older version installed, please remove all occurrences of "Abby" from the registry before installing.

    Reply
  • Problem in VC6

    Posted by Legacy on 08/09/1999 12:00am

    Originally posted by: shai

    The idea is greate!!!
    but when I try to follow the installation instructions I get a message : "unable to load this add-in because its server object failed to be created..."

    I'm using: VC6++, NT4(sp3).

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

Top White Papers and Webcasts

  • Live Event Date: October 29, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT Are you interested in building a cognitive application using the power of IBM Watson? Need a platform that provides speed and ease for rapidly deploying this application? Join Chris Madison, Watson Solution Architect, as he walks through the process of building a Watson powered application on IBM Bluemix. Chris will talk about the new Watson Services just released on IBM bluemix, but more importantly he will do a step by step cognitive …

  • Live Event Date: October 29, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT It's well understood how critical version control is for code. However, its importance to DevOps isn't always recognized. The 2014 DevOps Survey of Practice shows that one of the key predictors of DevOps success is putting all production environment artifacts into version control. In this eSeminar, Gene Kim will discuss these survey findings and will share woeful tales of artifact management gone wrong! Gene will also share examples of how …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds