This chapter describes each command on each CodeWarrior IDE menu.
These menus appear in Editor windows:
These menus appear in Project windows:These menus appear in the Message window:
Creates a new editable text window.
To learn more about this command, refer to "Creating a New File" for more information.
To learn more about this command, refer to "Creating a Project."
This menu item opens a text or project file.
To learn more about this command, refer to "Opening Files with the File Menu."
See "Opening Files with the File Menu." for more information.
If you close a source code file and have not saved your changes, CodeWarrior asks if you want to save your changes before closing the window (Figure 4.5). If you choose to close the source code file without saving your changes, all changes are lost.
Saves the contents of the active Editor window to disk.
For more information, see "Closing One File."
Saves the contents of the active window to disk under another name of your choosing.
For more information, see "Renaming and Saving a File."
For more information, see "Backing Up Files."
Use the Revert
command to revert the active Editor window to its last saved version.
Prints files from CodeWarrior on your printer.
For more information on printing files, see "Printing a Window," or read the documentation that came with your printer.
Enables you to choose the default printer used by the BeIDE to print.
Choose this item to see the way-cool CodeWarrior About Box.
Quits CodeWarrior immediately provided one of the following conditions have been met:
Quit
command saves all changes to the project file before the environment quits. If an Editor window is open and changes have not been saved, CodeWarrior asks if you want to save the changes before quitting.
The Edit menu contains all the customary editing commands and some CodeWarrior additions.
To learn more about this topic, refer to "Undoing the last edit,"
Deletes the selected text and puts it in the Clipboard, replacing the contents of the Clipboard.
Pastes the contents of the Clipboard into the active Editor window.
If the active window is the Message Window, the Paste
command is dimmed and cannot be executed.
To learn more about selecting text, refer to "Selecting Text."
Selects the text enclosed in either parentheses (), brackets [], or braces {}. For a complete procedure on how to use this command and how to balance while typing, consult "Balancing Punctuation."
To learn more about this feature, refer to "Shifting Text Left and Right."
Shifts the selected source code one tab size to the right.
To learn more about this feature, refer to "Shifting Text Left and Right."
To learn more about the Find window and its capabilities, refer to "Guided Tour of the Find Window."
Finds the next occurrence of the Find Text Box string in the active window. This is an alternative to clicking the Find button in the Find dialog box.
Holding the Shift key down before choosing the Search Menu changes the command to Find Previous.
To learn more about this feature, refer to "Finding Search Text."
Finds the next occurrence of the Find Text Box string in the next file listed in the Multi-File Search portion of the Find window (as exposed by the Multi-File Search Disclosure Triangle in the Find window). This is an alternative to using the Find window. If the Multi-File Search is not enabled as shown in Figure 6.3, this command is dimmed.
Holding the Shift key down before choosing the Search Menu changes the command to Find in Previous File.
To learn more about this feature, refer to "Searching and Replacing Text in Multiple Files."
This command copies the selected text in the active window into the Find Text Box, making it the search target string. This is an alternative to copying text and pasting it into the Find window.
Holding the Shift key down before choosing the Search Menu changes the command to Enter `Replace' String. This command copies the selected text in the active window into the Replace Text Box, making it the search target string.
To learn how to select text, refer to "Selecting Text."
Finds the next occurrence of the selected text in the active text editor window.
Holding the Shift key down before choosing the Search Menu changes the command to Find Previous Selection.
To learn more about this feature, refer to "Finding Search Text."
This command replaces the selected text in the active window with the text string in the Replace Text Box of the Find window. If no text is selected in the active editor window or there is no Replace string, this command is dimmed.
This command is useful if you wish to replace one instance of a text string without having to open the Find window. For example, say that you have just replaced all the occurrences of the variable "icount" with "jcount". While scrolling through your source code, you notice one instance of the variable "icount" is misspelled as "icont". To replace this variable with "jcount", select "icont" and choose the Replace
command from the Search Menu.
To learn more about replacing text, refer to "Replacing Found Text."
To learn how to select text, refer to "Selecting Text."
This command replaces the selected text with the text in the Replace Text Box string of the Find window, and then performs a Find Next. If no text is selected in the active editor window or there is no text in the Find Text Box string field of the Find window, this command is dimmed.
Holding the Shift key down before choosing the Search Menu changes the command to Replace & Find Previous.
To learn more about replacing text, refer to "Replacing Found Text."
To learn how to select text, refer to "Selecting Text."
If CodeWarrior finds more than one definition, a message window appears notifying you of multiple definitions. For more information on the Message window, consult "Using the Message Window."
For more information about this feature, refer to "Going to a Particular Line."
This command adds the file in the active Editor window to the open project.
This command is only available in an Editor window.
To learn more about this feature, refer to "Using the Add to Project Command."
This command allows you to add files to the Project window.
This command is only available in the Project window.
To learn more about this feature, refer to "Using the Add Files Command."
This command is only available in the Project window.
To learn more about removing files from projects, consult "Removing Files and Groups."
This command creates a new group in the project window.
This command is only available in the Project window.
To learn more about adding groups to projects, consult "About Groups and Segments."
Use this command to remove the currently selected group from the project window.
This command is only available in the Project window.
To learn more about removing groups from projects, consult "Removing Files and Groups."
To learn more about this topic, refer to "Compiling and Linking a Project."
If one or more errors are detected, the Message window appears. For information on how to correct compiler errors, consult "Correcting Compiler Errors and Warnings."
This command updates the open project by compiling all of its modified and "touched" files.
To learn more about this topic, refer to "Updating a Project."
This command links the selected project by linking the modified files in the open project.
To learn more about this topic, refer to "Making a Project."
To learn more about this topic, refer to "Using Precompiled or Preprocessed Headers."
This command performs C/C++ preprocessing on selected files.
To learn more about this command, refer to "Preprocessing Source Code (C/C++ only)."
To learn more about this feature, refer to "Disassembling Source Code."
This command removes all compiled source code binaries and deletes all .o
files from the open project. The numbers in the Code Column and Data Column of each file are reset to zero.
This command is only available in the Project window.
To learn more about this topic, refer to "Removing Objects."
This command is only available in the Project window.
This command is only available in the Project window.
To learn more about this topic, refer to "Controlling Debugging in a Project."
Launches your project directly instead of using the debugger. This command does not reset preferences set by the Enable Debuggercommand.
This command is dimmed if the active project does not create an application.
This command is only available in the Project window.
To learn more about this topic, refer to "Controlling Debugging in a Project."
To learn more about this topic, refer to "Running a Project."
This command is only available in the Project window.
To learn more about the CodeWarrior Debugger, refer to the Debugger for BeOS Manual.
This command arranges all Editor windows so that none overlap.
This command arranges all the Editor windows vertically.
To learn more about this feature, refer to "Using the Recent Projects List."
To learn more about configuring Project Settings, refer to "Project Settings Panels."
This command opens and brings the Errors and Warnings window to the front.
To learn more about this window, refer to "Guided Tour of the Message Window." Also, refer to "Using Batch Searches."
1. Select the lines to comment.
Source code lines are highlighted in the Editor window.