
6.3 How do I |
|||||||||||||||
6.3.1 Automatically Complete Statements |
With IntelliSense, the Text editor makes coding easier than ever. IntelliSense options include:
What do you want to know more about? Automatic statement completion Overview of IntelliSense options When the IntelliSense options are unavailable
What do you want to do? View the parameter list for a function Automatically complete a variable or function name Modify IntelliSense Options options Using the Members ListThe Members list displays valid member variables or functions for the class or structure to the left of the insertion point. When invoked on a blank line, or outside of a recognizable scope, the Members list displays globals. To use the Members list 1. Type your class or structure declaration, then type "." or "->". Or, simply type the class name and the scope operator (::). Magic C++ displays all valid members in a scrollable list. For example .
2 You can scroll or arrow through the list, or, if you know the first few letters of the member name, simply begin typing to jump directly to the member in the list. If you type a word that is not in the list, you will be taken to the nearest match.
3 To insert the selected member in your code, do one of the following:
4 Type the character that will follow the member, such as open-parenthesis, space, semi-colon and so forth, to insert the selected member followed by the character that you have just typed. This works for any non-identifier character. 5 Press RETURN, TAB, CTRL+ENTER, or double-click to insert just the member.
For more information about the contents of the Members list, see in the Members List. Viewing the Parameter List for a FunctionWhen you are typing a function, you can display a ToolTip containing the complete function prototype, including parameters. For overloaded functions, you can select which parameter list you wish to view. The Parameter Info ToolTip is also displayed for nested functions. To display Parameter Info 1 With your insertion point next to a member function, type an open parenthesis as you normally would to enclose the parameter list. Magic C++ displays the complete declaration for the function in a pop-up window just under the insertion point. The first parameter in the list appears bolded:
For overloaded functions, the parameter list gives you a choice of which function you want to use: 2 To switch between functions, use the arrows
3 As you type the function parameters, the bolding changes to reflect the next parameter you need to enter, for example: Typing the closing parenthesis also dismisses the parameter list. 5 If you dismiss the parameter list before completing the function and wish to view it again, press CTRL+SHIFT+SPACE, or right-click in the Text editor and choose Parameter Info from the shortcut menu. Viewing the Variable TypeThe Type Info option displays a ToolTip containing the complete declaration for any identifier. To display Type Info Let the mouse hover over the identifier. To turn off the automatic display of Type Info Clear the Auto type info check box under Statement completion options on the Editor tab of the Options dialog box (Tools menu). Automatically Completing a Variable or Function NameThe Complete Word option fills in the rest of your function or variable name for you. This can save you from having to repeatedly type long names. To complete the current word 1. Type in the first few letters of the name, then press CTRL+SPACE. IntelliSense completes the name for you. If what you've typed cannot be disambiguated, the Members list appears, with the nearest matching word highlighted. 2. Continue typing to narrow the matches. 3. Press ENTER to select a term from the list. Note Pressing CTRL+SPACE on an empty line, or outside of recognizable scope (for instance, just before a function name) opens the Members list populated with globals. Viewing the List of GlobalsYou can use IntelliSense to view and select from a list of all globals, including system API functions, C++ classes, instance variables, and local variables.
To view globals With the insertion point on an empty line in your source file, or outside of a recognizable scope, press CTRL+ALT+T. The Members list appears, populated with the globals. For more information about the items that populate this list, see Icons in the Members List.
Modifying IntelliSense OptionsBy default, most IntelliSense options appear automatically. You can turn off any of the automatic options so that they occur "on demand," so to speak. In this case, you invoke them only when you want, via a menu command or keystroke combination. Even when the IntelliSense options are on by default, you can always explicitly invoke them. You can also change the default key mappings for each option. What do you want to do? Turn off automatic IntelliSense options Invoke IntelliSense with a menu command Invoke IntelliSense options from the keyboard
To turn off automatic IntelliSense options 1. From the Tools menu, choose Options. 2. On the Editors tab, in the Statement completion options area, clear the options you do not want.
To invoke IntelliSense with a menu command 1. While in a source file, right-click in the file to view the shortcut menu. 2. From this menu, or the main Edit menu, choose from the following commands: List Members Type Info Parameter Info Complete Word
To invoke IntelliSense options from the keyboard The following are default key mappings for the IntelliSense options: To view the Members list, press CTRL+ALT+T. To view type information, press CTRL+T. To view parameter information, press CTRL+SHIFT+SPACE. To complete the current word, press CTRL+SPACE. (CTRL+SPACE on an empty line opens the Members list populated with globals. |
||||||||||||||
6.3.2 Setting Syntax Coloring |
Syntax coloring uses different colors for various elements of your code, such as keywords or comments. This coloring gives you visual cues about the structure and state of your code. What do you want to know more about? What do you want to do? Change colors used for syntax coloring
To change colors used for syntax coloring 1. From the Tools menu, choose Options. 2. Select the Format tab. 3. In the Category box, select the type of window for which you want to define formatting. 4. In the Font box, select the font you want. The Font box displays the different fonts installed on your system. The text sample in the sample box changes to the font you select. 5. In the Size box, select the size to be used with the font you selected. The Size box displays the sizes available for the selected font. The text sample in the sample box changes to the size you select. 6. In the Colors box, select the type of text you want to color. 7. In the Background box, select a background color. 8. In the Foreground box, select a foreground color. The Background and Foreground boxes display the 20 standard colors and the Automatic setting. The text sample displayed in the Sample box changes to the color you select. The behavior of the Automatic setting depends on the element selected. For colors that map to standard system elements (such as Foreground Color, Background Color, or Selected Text Color), the Automatic setting sets the element to the appropriate system color. For syntax coloring elements and other non-system defined colors, the Automatic setting indicates that the foreground color or background color from the same category is to be used. 9. Click OK.
|
||||||||||||||
6.3.3 Finding and Replacing Text |
You can search for text in a single source file or in multiple files. You can search for literal text strings or use regular expressions to find words or characters. With the Find command, you can search the active window for the following types of text strings: Whole Word Match Matches all occurrences of a text string not preceded or followed by an alphanumeric character or the underscore (_). Case Match Searches for text that matches the capitalization of the text string. Regular Expressions Uses special character sequences ¡ª regular expressions ¡ª to search for text. You can toggle these types of searches using toolbar buttons;
What do you want to know more about?
What do you want to do? Replace text in multiple files Find text using regular expressions Finding Text in a Single FileTo find a text string 1. Move the insertion point to where you want to begin your search. The editor uses the location of the insertion point to select a default search string. 2. From the Edit menu, choose Find. 3. In the Find what box, type the search text or a regular expression. If you do use regular expressions, be sure the Regular expression check box is selected. You can also use the drop-down list to select from a list of up to 20 previous search strings. 4. Select any of the Find options. 5. Start the search by clicking the Find . The Find dialog box disappears when the search begins. 6. To continue your search, use the Find Next or Find Previous shortcut keys, or the equivalent toolbar buttons on the Edit toolbar. The default shortcut key for Find Next is F3; the default key combination for Find Previous is SHIFT+F3.
To start a find without using the Find dialog box Type or select a search string in the Find box on the Standard toolbar, and press ENTER. Tip You can use regular expressions with the Find box on the Standard toolbar if you have previously selected the Regular expression check box in the Find dialog box. Finding Text in Multiple FilesYou can find text both on local machine and remote servers. To find a text string in multiple source files 1. From the File menu, choose Find In Files. 2. In the Find what box, type the search text or a regular expression. If you do use regular expressions, be sure the Regular expression check box is selected. You can also use the drop-down list to select from a list of up to 20 previous search strings. 3. In the In files/File types box, select the file types you want to search. You can use the drop-down list to select from common file types or to type text specifying other file types. 4. In the In folder box, select the primary folder that you want to search. Click the Browse button to display the Choose Directory dialog box if you want to change servers and directories.If you choose local machine , local choose directory dialog appears ,otherwise remote choose directory dialog appears. 5. If necessary, select one or more of the Find options. 6. If you want to direct the search output to a second Find in Files pane, select the Output to pane 2 check box. 7. Click the Find button to begin the search. The Output window displays the list of file locations where the text string appears. Each occurrence lists the fully qualified filename, followed by the line number of the occurrence and the line containing the match. 8. To open a file containing a match, double-click the entry in the Output window. An editor window containing the file opens, with the line containing the match selected. You can jump to other occurrences of the text string by double-clicking the specific entries in the Output window When you jump to a found string location specified in the Output window, the corresponding source file is loaded if it is not already open in the editor. Note The Output window is a virtual window that is maintained even when it is not displayed. You can display the output from your last multiple-file search done during your current session by choosing the Output command from the View menu and by choosing the Find In Files tab in the Output window. Replacing TextTo replace text 1. Move the insertion point to where you want to begin your search. The editor uses the location of the insertion point to select a default search string. 2. From the Edit menu, choose Replace. 3. In the Find what text box, type the search text or a regular expression. Tip If you do use regular expressions, be sure the Regular expression check box is selected. You can also use the drop-down list to select from up to 20 previous search strings. 4. In the Replace with text box, type the replacement text. You can also use the drop-down list to select from up to 20 previous replacement strings. 5. Select any of the remaining Replace options. 6. Start the search by clicking the Replace, or Replace All buttons.
Replacing Text in Multiple FilesYou can replace text both on local machine and remote servers. To replace a text string in multiple source files 1 From the File menu, choose Replace In Files. 2 In the Find what box, type the search text or a regular expression. Tip: If you do use regular expressions, be sure the Regular expression check box is selected. You can also use the drop-down list to select from a list of up to 20 previous search strings. 3 In the In files/file types box, select the file types you want to search. Tip: You can use the drop-down list to select from common file types or to type text specifying other file types. 4 In the In folder box, select the primary folder that you want to search. Click the Browse button to display the Choose Directory dialog box if you want to change servers and directories, if you choose local machine , local choose directory dialog appears, otherwise remote choose directory dialog appears. 5 In the Replace with text box, type the replacement text. You can also use the drop-down list to select from up to 20 previous replacement strings. 6 If necessary, select one or more of the Replace options. 7. If you want to direct the search output to a second Find in Files pane, select the Output to pane 2 check box. 8. Click the Replace button to begin the search. The Output window displays the list of file locations where the text string appears. Each occurrence lists the fully qualified filename, followed by the line number of the occurrence and the line containing the match after replace. Using Regular ExpressionsA regular expression is a search string that uses special characters to match a text pattern in a file. You can use regular expressions with both the Find and Replace Functions. Introducing Regular ExpressionsRegular expressions provide a flexible approach to matching text. They can be very simple, such as f.r, which finds any three letter word beginning with f and ending in r. Or it can be very complex, with several parts described in parentheses that are individually evaluated. By combining small expressions to form larger complex (compound) expressions, you can create very specific search criteria. For example, you can find any word beginning with pre which also ends with ed, such as pretended or presented. Regular expressions can be used to match text that can vary between occurrences. For example, searching for a particular assignment operation that has been typed with varying amounts of white space, is now possible using regular expressions. Simple ExpressionsIn its most simple form, a simple expression consists of one or more characters. For example, a A sequence of characters is called a character string. Character ClassesA character class is a number of characters enclosed in square brackets. For example, [0123456789] matches any one of the characters inside the brackets. This character class matches any single digit. This digit character class can be written more simply as: [0-9] The '-' indicates a range of characters between the '0' and '9'. The order in which a range of characters is specified is related to the order in which characters appear in the ASCII character set. A complete list of the 7-bit ASCII characters can be found in Appendix A. Another example of a range within a character class is, [a-z] this would match any lower case character, while [a-zA-Z] would match any uppercase or lowercase character. If the first character after the '[' is a circumflex ( ^ ), the character class matches all characters which are not listed in the brackets. For example, [^0-9] would match all characters that are not digits. NOTE:A '-' or ']' as the first character after the '[' is interpreted literally to allow the user to include dashes and square brackets in character classes. Special Character ClassesThe period ( . ) character class matches any single character except a new line. For example, f.r would match any three character string starting with an 'f' and ending with a 'r'. Repeating PatternsAny regular expression, either simple or compound, followed by an asterisk, indicates that zero or more repetitions of the regular expression will be matched. For example, [0-9][0-9]* matches a pattern of characters starting with a digit, followed by zero or more additional digits. This is a typical example of a regular expression used to match a pattern of characters representing a typical number. [A-Z][a-z]* The regular expression above matches an uppercase letter followed by zero or more lowercase letters. The '+' character can be used in a similar manner to '*' to match one or more repetitions of the preceding regular expression. For example, [0-9]+ matches a sequence of one or more digits, which is the same as the previous example, [0-9][0-9]* Using the brace brackets you can specify a specific number or repetitions for a regular expression. For example, [0-9]{3} matches a sequence of three digits. A range of repetitions can be defined within the brace brackets. For example, [0-9]{1,10} matches a sequence of 1 to 10 digits. Optional ExpressionsA regular expression immediately followed by a question mark ( ? ) makes the expression optional. For example A? matches 0 or 1 occurrence of the letter 'A'. AlternativesTwo regular expressions, simple or compound, may be separated by a vertical bar ( | ) to produce an expression that matches either one of the expressions. For example, [a-z]|[A-Z] matches either a single lowercase or uppercase letter. GroupingUsing parentheses, expressions may be grouped together. For example, (top|middle|bottom) matches any of the strings top, middle or bottom. Grouping is especially useful when constructing compound regular expressions which use one or more of the expressions described above. For example, ([A-Za-z_][A-Za-z0-9_]*)|(-?+?[0-9]) matches any C style identifier or any integer constant.
|
||||||||||||||
6.3.4 Navigating in Files |
matching levelTo search forward for a matching level Press the CTRL+] The command begins searching for one of matched delimiters, which are (, {, and [. When the matched delimiter is found, the cursor is positioned at the matching right-side delimiter. If a matching delimiter cannot be found, the editor beeps. To move to a matching brace 1. Place the insertion point immediately in front of a brace. 2. Press the CTRL+] key combination. The insertion point moves forward or backward to the matching brace. Choosing the command again returns the insertion point to its starting place. If a matching brace cannot be found, the editor beeps. This method also works for parentheses, angle brackets, and square brackets. using the Go To dialog box1 From the Edit menu, choose Go To 2 Enter a line index in the dialog box. 3 Click OK , the dialog disappear and cursor located on the line you just input. Using BookmarksYou can set named or unnamed bookmarks to mark frequently accessed lines in your source file. Once a bookmark is set, you can use menu or keyboard commands to move to it. You can remove a bookmark when you no longer need it. What do you want to do? Move to the next bookmark in current file Move to the previous bookmark in current file Remove all bookmarks in current file 1. Move the insertion point to the line and column where you want to set a named bookmark. 2. From the Edit menu, choose Bookmarks. 3. In the Name box, type a name for the bookmark. 4. Click Add to add the named bookmark to the list of bookmarks and to set the bookmark at the insertion point. 5. Click Close. 1. Move the insertion point to the line where you want to set a bookmark. 2. Press the BookmarkToggle Ctrl+F2 The line is selected, or marked in the margin if you have set the selection margin. -or- 6. Move the insertion point to the line and column where you want to set a named bookmark. 7. From the Edit menu, choose Bookmarks. 8. Click Add to add the named bookmark to the list of bookmarks and to set the bookmark at the insertion point. 9. Click Close.
1. From the Edit menu, choose Bookmarks. 2. Select the bookmark to remove. 3. Click Delete. 4. Click Close. -or- 3. Move the insertion point to the line where you want to delete a bookmark. 4. Press the BookmarkToggle Ctrl+F2 The mark in the margin disapeared.
To remove multiple bookmarks 1. From the Edit menu, choose Bookmarks. 2. Select the names of the bookmarks to remove. 3. Click Delete. 4. Click Close. To jump to a bookmark 1. From the Edit menu, choose Bookmarks. 2. Select the name of the bookmark to jump to. 3. Click Go To. Note If the file containing the bookmark is not currently open, the Text editor opens the file.
To move to the next bookmark Press the Hotkey: F2
To move to the previous bookmark
To move to the next bookmark in current file Press the Hotkey: Alt+F2
To move to the previous bookmark in current file Press the Hotkey: Shift+Alt+F2
To Remove All Bookmarks Click the Remove All Bookmarks Button in toolbar.
To Remove All Bookmarks in current file Click the Clear Bookmarks in current file Button in toolbar. |
||||||||||||||
6.3.5 Customizing the Text Editor |
You can set the Text editor's behavior to suit your preferences and work habits in several areas, including tabs and indents; and font style, size, and color. Setting the Selection MarginThe selection margin is an area to the left of each line of text. The selection margin is used to show breakpoints, temporary bookmarks, current and caller line, and error line. It also has special selection behavior . What do you want to do? Set the color of the selection margin 1. From the Tools menu, choose Options. 2. Select the Editor tab. 3. Select the Selection margin check box. 4. Click OK. When the mouse pointer is moved into the selection margin, it changes to a select arrow that points up and to the right (a mirror image of the standard select arrow). Do any of the following: Click in the margin to select the entire line to the right of the mouse pointer. Click in the margin and move the mouse pointer to select multiple consecutive lines. While holding down SHIFT, click in the margin and move the mouse pointer to extend a selection. While holding down CTRL, click anywhere in the margin to select the entire file. (This is equivalent to choosing the Select All command from the Edit menu.) To set the color of the selection margin 1. From the Tools menu, choose Options. 2. Click the Format tab. 3. In the Colors box, choose Selection Margin. 4. Set the foreground and background colors you want. 5. Click OK.
Setting Tabs and IndentsYou can indent text with tab characters several ways: Use the Indent Selection key. Use Auto Indent . When you press the TAB key, the insertion point moves to the next indent level. You can also use Auto Indent to automatically indent new lines to match the previous line. What do you want to do? Change tab and indent settings 1. From the Tools menu, choose Options. 2. Select the Tabs tab. 3. Under Auto Indent, select Smart. 4. Under Smart indent options, specify the number of previous lines to use for the context of smart indenting. 5. Click OK. Backspacing over a tab character deletes that tab character, regardless of the indent setting. If you select the Insert spaces option, a tab character is not inserted, and only spaces are inserted to reach the next indent level. To change tab and indent settings 1. From the Tools menu, choose Options. 2. Select the Tabs tab. 3. In the Tab size box, type the number of spaces to use as a tab stop. The default is four spaces. 4. In the Indent size box, type the number of spaces to use for indents. The default is four spaces. 5. Select the Keep tabs option to treat each tab as a single tab character when the file is saved. -or- Select the Insert spaces option to use spaces as specified in the Tab size box. 6. Click OK. 1. Select the group of lines. 2. Press the Increase Indent button in toolbar. 1. Select the group of lines. 7. Press the Decrease Indent button in toolbar. Setting Font Style, Size, and ColorYou can change the font style, size, and color settings for any window with the Format command. You may discover that different fonts in various windows give visual clues about the function of the windows ¡ª the default setting for source windows, a different font for the Watch window, and so on. You can use the text font and size to better manage your window display of information. To change a font style, size, or color 1. From the Tools menu, choose Options. 2. Select the Format tab. 3. In the Category box, select the window you want to format 4. In the Font box, select the font you want. The Font box displays the different fonts installed on your system. The text sample in the sample box changes to the font you select. 5. In the Size box, select the font size you want. The Size box displays the sizes available for the selected font. The text sample in the sample box changes to the size you select. 6. In the Colors box, select the type of text you want to color. 7. In the Background box, select a background color; in the Foreground list box, select a foreground color. 8. Click OK. Note The Background and Foreground lists display the 16 standard colors and the Automatic setting. The text sample displayed in the Sample box changes to the color you select. The behavior of the Automatic setting depends on the element selected. For colors that map to standard system elements (such as foreground color, background color, or text selection color), the Automatic setting sets the element to the appropriate system color. For syntax coloring elements and other non-system defined colors, the Automatic setting indicates that the foreground color or background color from the same category is to be used. Text within one category of window can be only one font and size. Multiple fonts cannot be displayed in the same category of source window. The font and size settings apply to everything within the selected category, while the foreground and background color settings apply only to the selected element of that category. Tip You can reset the formatting options for a selected category to the default settings by choosing Reset All. |
||||||||||||||
6.3.6 Editing Text |
Cutting, Copying, Pasting, or Deleting TextYou can edit your text using the following actions.
What do you want to do? 1. Select the text you want to cut or copy. 2. From the Edit menu, choose Cut or Copy. The cut or copied text is placed onto the Clipboard and is available for pasting. 3. Move the insertion point to any source window where you want to insert the text. 4. From the Edit menu, choose Paste. 1. Select the text you want to delete. 2. From the Edit menu, choose Delete. The deleted text is not placed onto the Clipboard, and cannot be pasted. Undoing or Redoing an Edit ActionUse the Undo command to undo previous editing actions. Use the Redo command to reapply editing actions that have been undone. Redo is unavailable unless you have used the Undo command. The number and scope of editing actions you can undo is determined by the size of the Text editor¡¯s UndoRedoSize buffer in the registry. Note You can also undo automated edits. For example, if you have used Auto Indent to insert a tab to your code, you can undo the insertion To undo an edit action From the Edit menu, choose Undo. To redo an edit action From the Edit menu, choose Redo.
Using Drag-and-Drop EditingDrag-and-drop editing is the easiest way to move or copy a selection of text within a file, between files, or between applications. The text you drop remains selected, which makes it easy to copy a chunk of text into several places. What do you want to do? To move text using drag-and-drop editing 1. Select the text you want to move. 2. Drag the selected text to the new location.
Tip At any time during a drag-and-drop procedure, you can click the other mouse button to cancel the operation. To copy text using drag-and-drop editing 1. Select the text you want to copy. 2. While holding down the CTRL key, drag the selected text to the new location. |
||||||||||||||
6.3.7 Managing Files |
Creating a New FileThe New command creates a new source file. Creating a source file does not affect other open source files. To create a new source file 1. From the File menu, click New. 2. Select the kind of source file you want to create. 3. Select or clear the Add to Project check box, if necessary. 4. Type a name in the File name box. 5. Type a path in the Location box.if you want to create a remote file ,just type in Unix filename format 6. Click OK. Opening a File1. From the File menu, Click Open ,and choose one of servers where the fille is locate on. 2. Select the directory where the file is stored in the open file dialog. 3. Specify the types of files to display in the Files of type box. Files with the chosen extension are displayed in the list box. For example, Project Workspaces displays all files with the .wsp extension. The Files of type box initially lists commonly used file extensions. The default shows the .c, .cpp, .cxx and .h extensions. Tip You can specify wildcard patterns in the File
name box to display file types. You can use any combination of wildcard
patterns, delimited by semicolons. For example, if you type 4. Select a filename, then click Open. You can also open a file by double-clicking the file icon in the Project Workspace, or by dragging the icon of a non-project file into the application window. Tip The names of the four most recently opened files are displayed at the end of the File menu. To open one of these files, choose its name from the menu. Opening Multiple FilesYou can open multiple files both from the Local Open dialog box and Remote Open Dialog box by using the mouse to select a file or group of files. Before you can select files, they must be visible in the Directories window. To open two or more files in sequence1. From the File menu, choose Open.and select local machine or a server profile name. 2. Select the drive or directory where the files are stored. The default is the current drive and directory or recently visited remote directory. 3. Specify the types of files to display in the Files of type box. Files with the chosen extension are displayed in the list box. For example, Project Workspaces displays all files with the .dsw extension. The Files of type box initially lists commonly used file extensions. The default shows the .c, .cpp, .cxx, and .h extensions. Tip You can specify wildcard patterns in the File
name box to display file types. You can use any combination of wildcard
patterns, delimited by semicolons. For example, if you type 4. Click the first file or directory you want to select. 5. Hold down the SHIFT key while you click the last file or directory in the group, and then click Open. To open two or more files out of sequence1. From the File menu, choose Open.and select local machine or a server profile name. 2. Select the drive or directory where the files are stored. The default is the current drive and directory. 3. Specify the types of files to display in the Files of type box. Files with the chosen extension are displayed in the list box. For example, Project Workspaces displays all files with the .dsw extension. The Files of type box initially lists commonly used file extensions. The default shows the .c, .cpp, .cxx, .h, and .rc extensions. Tip You can specify wildcard patterns in the File
name box to display file types. You can use any combination of wildcard
patterns, delimited by semicolons. For example, if you type 4. Hold down the CTRL key while you click each file or directory that you want. After your selection is complete, click Open. To cancel a selection, hold down CTRL while you click the selected file or directory. Saving a FileAs you make changes to a source file, an asterisk (*) appears in the title bar to indicate that the file has changed since it was last saved. an plus (+) appears in the title bar to indicate that the bookmark or breakpoint of the file has changed since it was last saved.Each source window associated with a source file can retain its own sizing and other window attributes. What do you want to do? Save a new file or another copy of an existing file 1. Switch to the source window. 2. From the File menu, choose Save. If you already named the file, the Save command saves changes without displaying the Save As dialog box. If your file is unnamed, the Save As dialog box appears. 3. In the File name box, type the filename. 4. Select the drive and directory where you want to save the file. 5. Click Save. From the File menu, choose Save All. 1. From the Window menu, choose Windows. 2. Select one or more files from the file list. 3. Click Save. 4. Click Cancel. You can also save another copy of an existing file. This procedure is useful for maintaining revised copies of a file while keeping the original unchanged. For more information, see To save a new file or another copy of an existing file.
To save a new file or another copy of an existing file 1. Make the file active by clicking the source window. 2. From the File menu, choose Save As.select Local machine or a remote server. 3. In the File name box, type the filename. 4. Select the drive or the directory where you want to save the file. 5. Click Save. Printing a FileWith the Text editor, you can print selected text or a complete file. Text is printed in the default font for the printer if the default editor font is used. Otherwise, the text prints with the selected editor font, if that font is available on the printer. You can customize your print jobs by adding headers and footers and by adjusting margins. What do you want to do? 1. Select the text you want to print. 2. From the File menu, choose Print. The Print dialog box appears. Under Print Range, the Selection option is automatically selected for you. 3. Click OK. 1. Move the focus to the source file you want to print. 2. From the File menu, choose Print. The Print dialog box appears. Under Print Range, the All option is automatically selected for you. 3. Click OK. To customize a print job 1. From the File menu, choose Page Setup. 2. In the Header and Footer boxes, type header or footer text, print control codes, or both. Use the right arrow to display a menu that enables you to insert control codes into the text box. You can enter separate alignment options for Filename, Page Number, Current Time, and Current Date. Always enter the alignment option first, then the data. For example:
specifies that the filename ( 3. Under Margins, type the left, right, top, and bottom measurements. 4. Click OK. Managing Open WindowsThe Text editor features options that control the display of source windows. You can switch between windows, open new windows and split window views.
Jump between opened source windows To switch to a source window 1. From the Window menu, choose Windows. 2. Select a window from the Select Window list. 3. Click the Activate button, or double-click the selection.
Jump between opened source window Use Hotkey Ctrl+Tab to jump back to the last active window Keep Ctrl Pressed, use Tab to jump between opened source windows with order. Keep Ctrl and Shift Pressed, use Tab to jump between opened source windows with reversed-order.
|
