10.02.2013 Views

SlickEdit User Guide

SlickEdit User Guide

SlickEdit User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

C AND C++<br />

The following options are available:<br />

• Indent preprocessing - When this option is selected, the indent before the # character of<br />

preprocessing is set to indicate the preprocessing nesting level.<br />

• Indent inside block - When this option is selected, preprocessing inside brace block is indented<br />

when inside preprocessing. Otherwise, preprocessing within a brace block start in column 1.<br />

• Indent inside special #ifndef - Many C/C++ header files starts with the following lines of code:<br />

#ifndef myheader_h<br />

#define myheader_h<br />

#endif<br />

When this option is selected, preprocessing inside this special #ifndef case is indented.<br />

• Eat spaces after # - When this option is selected, the spaces after a preprocessor #, but before<br />

the keyword (if, ifdef, else, elif, endif, etc.), are removed. This is useful for fixing old C code<br />

where the # character had to start in column 1 and spaces were used after the # to indicate the<br />

nesting level.<br />

• Force parens on return - When this option is selected, parentheses are added to return<br />

statements which do not have parentheses.<br />

• Pad condition - These options indicate if parenthesized conditional expressions should have their<br />

spacing adjusted.<br />

Schemes Tab<br />

The Schemes tab of the C/C++ Beautifier is pictured below.<br />

To define a new scheme, set the various beautify options, and press the Save Scheme button. <strong>User</strong><br />

defined schemes are stored in uformat.ini.<br />

<strong>SlickEdit</strong>® <strong>User</strong> <strong>Guide</strong> 349

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!