Working With Tabs
Three properties determine how tabs are handled by the Source Editor:
To set the tab properties:
-
Choose Tools
Options and expand
the Editing node. Then expand the Editor Settings node and select the type of
editor you are using.
-
Tab Size is the last property in the Options window property sheet pane.
-
Expand Tabs to Spaces and Number of Spaces per Tab are set in the Indentation
Engine property editor. See
Indentation Properties for a complete
description of these properties.
To convert existing tab characters to spaces:
-
Choose Tools
Options and expand
the Editing node. Then expand the Editor Settings node and select the type of
editor you are using.
-
Click the Indentation Engine property, and then click the ellipsis (...) button to
display the Indentation Engine property editor.
-
In the Indentation Engine property editor, choose Java Indentation Engine and set
Expand Tabs to Spaces to True.
-
Click OK.
-
In the Source Editor, select the text containing tabs you want to convert to spaces.
-
Reformat the text by pressing Ctrl-Shift-F or right-click and choose Reformat Code
from the contextual window.
 |
You can convert spaces to tab characters by following the above steps, but
setting Expand Tabs to Spaces to False.
|
Legal Notices