The following options are available:
•
Main style
- Specifies the
main
function declaration template inserted. Select
ANSI C/C++
if you want
an old ANSI C main declaration inserted. You can define a template by using aliases, or you can write a
replacement function for
c_insert_main
. The command
find-proc c_insert_main
will locate the macro
source for this function.
•
C/C++ Preprocessing
- Click this button to customize the global preprocessing that is used when Con-
text Tagging
®
creates tag files for C or C++. See
C/C++ Preprocessing
.
•
Extensionless C++ Files
- Click this button to add names of extensionless C++ header files. SlickEdit
®
Core takes care of the standard STL headers automatically, but you can use this to add additional com-
piler specific headers, such as
unodered_set
or
regex
. Note, this setting works in combination with the
extensionless header file path regular expression (see below).
•
Extensionless C++ File Path Regular Expression
- In order for SlickEdit Core to safely recognize an
extensionless C++ header file as C++ automatically, without accidently attempting to open other exten-
sionless files (such as executables) as if they were C++, in addition to requiring that you specify the
names of the files (see above), the path that the files are located in must match this regular expression.
C/C++ Beautifier
To beautify a C or C++ document, open the file you want to beautify, then from the main menu, click
Format
→
Beautify
(or use the
gui_beautify
command). The C/C++ Beautifier will be displayed, which
allows you to make settings for how the code will be beautified.
You can use the commands
c_beautify
or
c_beautify_selection
to instantly beautify the file or the selec-
tion according to the settings on the Beautifier dialog.
Currently, this beautifier supports beautifying Slick-C
®
source if the statements are terminated with semi-
colons like C.
Note
The C#, Java, JavaScript, and Slick-C Beautifiers contain the same options and settings as the
C/C++ Beautifier.
The following buttons and settings are available on the Beautifier:
•
Beautify
- Beautifies current selection or buffer and closes the dialog box.
•
Reset
- Restores the dialog box settings to the values that appeared when you invoked the dialog.
•
Save Settings
- Saves beautify options in
uformat.ini
file. These settings are used by the
c_beautify
command.
•
Restrict to selection
- When this option is selected, only lines in the selection are beautified.
C/C++ Beautifier
237
Summary of Contents for Corev3.3 for Eclipse
Page 1: ...Think Slick Corev3 3 for Eclipse...
Page 2: ......
Page 3: ...SlickEdit Core v3 3 for Eclipse...
Page 5: ......
Page 6: ......
Page 14: ...xii...
Page 20: ...xviii...
Page 22: ...xx...
Page 23: ...Chapter 1 Introduction 1...
Page 41: ...Chapter 3 User Interface 19...
Page 61: ...Chapter 4 User Preferences 39...
Page 80: ...BODY BODY HTML HTMLEOF Restoring Settings on Startup 58...
Page 82: ...60...
Page 83: ...Chapter 5 Context Tagging 61...
Page 97: ...Chapter 6 Editing Features 75...
Page 124: ...Code Templates 102...
Page 238: ...Figure 6 49 Test Parsing Configuration Example 1 C Refactoring 216...
Page 241: ...Figure 6 51 Test Parsing Configuration Example 3 Reviewing Refactoring Changes 219...
Page 250: ...228...
Page 251: ...Chapter 7 Language Specific Editing 229...
Page 328: ...306...
Page 329: ...Chapter 8 Tools and Utilities 307...
Page 350: ...328...
Page 351: ...Chapter 9 Macros and Macro Programming 329...
Page 360: ...338...
Page 361: ...Chapter 10 SlickEdit Core Dialogs 339...
Page 375: ...Find and Replace View 353...
Page 491: ...Chapter 11 Appendix 469...
Page 567: ......
Page 568: ......