home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-04-16 | 1.2 KB | 46 lines | [TEXT/ALFA] |
-
- C++ Mode Completions
-
- Use the 'back-quote' key to jump to the next completion, or just position the
- cursor appropriately, and then hit the completion invoking key ('cmd-tab'
- --default, 'tab' --alternative set).
-
- (a) Here are some typical uses of electric completions:
-
- for◊
-
- while◊
-
- switch◊
-
- (b) It's important spell long variable names correctly.
-
- while(myVeryLongVariableName>0) {
- my◊
-
- (c) By pressing the invoking key multiple times, you can switch between any
- number of alternative completions both above and below the insertion point.
- If you cycle through all possibilities, the entire name is highlighted so
- you can delete it easily if desired.
-
- int myOtherLongVariable = 0;
- while(myVeryLongVariableName>0) {
- my◊
-
- int myVariableBelow;
-
-
- (d) There is another way to quickly pull a variable or function name out of
- the surrounding text. Instead of typing the first few letters of a
- multi-word identifier, type each letter that starts a word in that
- identifier. Completions of this sort are invoke by pressing 'cmd-<space>':
-
- int myOtherLongVariable = 0;
- while(myVeryLongVariableName>0) {
- mvlvn◊
- molv◊
- mvb◊
-
- int myVariableBelow;
-
-