You can reduce the number of keystrokes when you are typing C and C++ code by typing abbreviations to generate code from templates. The abbreviation is expanded into the template after you type a space.
The IDE provides a set of C and C++ code templates. You can also create your own code templates.
Below is the list of C and C++ code templates that the IDE provides by default.
| Abbreviation | Code Template | 
|---|---|
| FA | FALSE | 
| TR | TRUE | 
| bo | bool | 
| ca | case | 
| cl | class | 
| co | const | 
| de | default | 
| def | #define | 
| do | double | 
| eif | #endif | 
| en | enum | 
| ex | exception | 
| fa | false | 
| fl | float | 
| fori | for (int i = 0; i < |; i++) {} | 
| forj | for (int j = 0; j < |; i++) {} | 
| ifd | #ifdef | 
| ife | if (|) {} else {} | 
| iff | if (|) {} | 
| ifn | #ifndef | 
| inc | #include | 
| lo | long | 
| pra | #pragma | 
| sh | short | 
| stu | struct | 
| sw | switch | 
| tr | true | 
| ty | typedef | 
| uni | union | 
| uns | unsigned | 
| wc | wchar | 
| ws | wstring | 
| See Also | |
|---|---|
| Using Abbreviations Creating and Customizing Code Templates | |