Share via


Code Librarian Explorer Window (Code Librarian)

Use the Code Explorer to view and modify the source code and specify category and keyword search criteria. To insert the selected code snippet into your code module easily, use the Copy Code to Clipboard toolbar button.

For information about opening the Code Librarian, see Opening the Code Librarian.

  • Explorer window
    The Code Librarian database tree view is a hierarchical view of all open code libraries. Items in the tree view are organized by categories. To open a node, click the plus sign by the icon. To close a node, click the minus sign. This window contains toolbar buttons and is right-click enabled.

    The Description field is directly below the tree view section of the window. When you select an item in the Explorer, a description appears in the Description field. To modify the description of an item, select the item, and click in the Description window. The window becomes active, and you can modify the text. When you click anywhere else on the development environment, your changes are saved.

The following toolbar buttons can be used with the contents of the code editor window.

  • New Library toolbar button
    Displays a Save As dialog box. Select the folder where you want the new library database to be saved, enter the name for the new database, and click Save.
  • Open Library toolbar button
    Displays an Open dialog box. Select a library, and click Open. In the Code Librarian, multiple library databases can be open at the same time.
  • Search toolbar button
    Initiates Find In dialog. When the dialog appears, you can type what you want to search for in the search text box and select which category you want to search within: titles, code, descriptions, and keywords.
  • View Code toolbar button
    Opens a selected code snippet in the viewer and displays a description of that code in the description window.
  • Copy code to clipboard toolbar button
    Copies the code item text to the clipboard when a code item is selected. When a category is selected, all the code items within that category are appended together, in the order in which they are listed in the category.
  • Add Category toolbar button
    Adds a new category to the currently selected database.
  • Add New Code toolbar button
    Adds a new code item to the currently selected database. If focus is on a category in the database, the new code item is inserted under that category. If focus is on a code item in the database, the new code item is added into the parent category of that code item.
  • Delete toolbar button
    Displays a message asking you to verify that the selected code item or category (and all of its contents) should be removed. If you answer Yes, the selected code item or category will be removed from the database.

You can float or dock the Code Librarian Explorer window based on user preference.

Note   The properties for each item in the Code Librarian Explorer can be seen in the Properties Window (Code Librarian).

See Also

Sharing Code with the Code Librarian | Distributing Code Samples with the Code Librarian Viewer | Code Editor Window | Search Results Window | Properties Window | Keyword Dialog Box | Find in Code Library Dialog Box | Define Types Dialog Box