Sun Visual WorkShop C++ Overview

Chapter 3 Editing and Browsing

Ease of editing and browsing are critical to efficient program development and maintenance. With Sun WorkShop editors and the source browser you can navigate quickly through large bodies of code.

Choose Your Editor

In Sun Visual WorkShop C++, you can write and edit source code more productively with your preferred editor: XEmacs, Emacs, or vi. Link to your source code line in the editor window to perform error and source browsing, and referencing. With these editors, you can perform many development functions and share task information with the other components of Sun WorkShop.

Try Out the Source Browser

Use the source browser to help you develop and maintain software systems, especially large ones. During the course of a programming project, you might join a new programming team to enhance, maintain, or port code. Before you become a productive team member, you must fully understand the code that you will modify. The source browser is a powerful tool for browsing large programs.

The source browser uses a "What you see is what you browse" paradigm. The source code you edit is the same source code the source browser uses in its searches.

Search for Patterns

You can use the source browser in pattern search mode to search for regular expressions or simple text strings. Pattern searching uses standard grep syntax to find all source lines that match the search string.

Search by Query

You can the use source browser in source browser mode to issue queries. A query instructs the source browser to locate all occurrences of, definitions of, uses of, or assignments to the symbol, string, or search pattern you specify. You then view the occurrences and surrounding source code.

Search Local or Network Files

You can search and browse source files residing locally or on the network. You can make global changes and pinpoint problem spots, even on large, distributed development projects.

Search Multiple-Language Programs

When you browse a program that uses more than one language in the implementation, the source browser automatically determines the language in which each source file is written. The browsing operations do not change from one language to another.

Experience Flexible Browsing

You can use the source browser in either the Sun WorkShop Browsing window (both modes) or a command-line environment (source browsing mode only).

You can edit source code using your favorite editor within the source browser.

Use Static Analysis to Examine Source Code

Use the source browser to examine your source code in an organized fashion. You can gain better understanding of a piece of software by: