See Also
Editor Options: Formatting
This tab enables you to define the formatting style you want to apply to
your source files in the editor. The settings in this panel apply
globally. Some options apply to all languages while others are language-specific.
- Language. The language whose global formatting options you want to edit.
All Languages
All Languages refer to all languages except C++. If you select All Languages, the only Category of options is Tabs and Indents.
- Expand Tabs to Spaces. When selected, inserts spaces when the Tab key is typed.
When unselected, typing the Tab key inserts the tab character (\t) into the file if
possible. It also replaces preceding spaces with the tab character if possible.
The Source Editor calculates where to place tab characters based on the value
of the Tab Size property.
If Expand Tabs to Spaces is unselected and the Number of Spaces per Indent is different
than the Tab Size property, the indentation created by typing the Tab key is
made up of a combination of spaces and tab characters. It is easiest to predict
the location of tab characters if you set Number of Spaces per Indent to an even
multiple or divisor of Tab Size.
- Number of Spaces per Indent. Specifies the number of spaces represented by one indentation level.
- Tab Size. See the description of Expand Tabs to Spaces, above.
- Right Margin. Specifies the location of the right margin, which is 80 characters by default.
- Line wrap: Whether lines are wrapped when they are longer than the width of the Editor window (no relationship to right margin). Options are:
- Off. No line wrapping (default).
- After words. Words are not broken by line wrapping.
- Anywhere. Lines are broken in the middle of words by line wrapping.
The Preview pane displays how the applied changes will appear in the Source Editor.
- See Also
- Using the Options Window
Legal Notices