
Hitachi Embedded Workshop User Manual
77
4.8.2
Changing Tabs
To change tab size:
1. Select [Tools->Options...]. The “Options” dialog will be displayed. Select the “Editor” tab (figure 4.7)).
2. Enter into the “Tab size” field the number of desired tabs.
3. Click “OK” for the tab setting specified to take effect.
Figure 4.7: Options Dialog Editor Tab
When a TAB key is pressed in the editor a tab character is usually stored in the file. However, sometimes it is
preferable to store spaces instead. The representation of tab characters can be controlled via the “Options” dialog.
To use spaces as tabs:
1. Select [Tools->Options...]. The “Options” dialog will be displayed. Select the “Editor” tab (figure 4.7).
2. Set the “Use spaces as tabs” check box as appropriate.
3. Click “OK” for the tab setting specified to take effect.
4.8.3
Auto Indentation
When you press return in a standard editor the insertion cursor will move to the next line down, at the first
column (i.e. against the left hand side of a window). Auto Indentation is a feature which, when return is pressed,
places the insertion cursor on the next line (as before) but under the first non-white space character of the
previous line. This enables you to type neat C/C++ or assembler code faster as you don’t have to type leading
spaces or tabs yourself.
Figure 4.8 illustrates two examples. The first (i) shows the effect of pressing return when the auto indentation
feature is disabled - the insertion cursor returns to the left-hand side of the window on the next line. When the