Top
Interstage Studio User's Guide
FUJITSU Software

10.1.2 Editors

Changing the Default Editor

When an editor is to be used to open a file, [Open With] can be selected from the context menu to select the editor that is to be used.
From [General] > [Editors] > [File Associations] on the preference page, selectable editors can be added and default editors can be set for specific file types.

Maximizing the Editor Area

In the ordinary perspective, the editor area is displayed in the centre of the workbench. If you want to enlarge the editor area during coding, you can toggle between maximizing the editor area and returning it to the normal size by double-clicking the tab displaying the editor file name.

Contents Assist

When the [Ctrl+Space] keys are pressed, input suggestions relevant to that situation are displayed. In order to narrow down the input suggestions, enter the first few characters and then press the [Ctrl+Space] keys. Alternatively, once the suggestions are displayed, the suggestions can be narrowed down by inputting the first few characters.

Searching for a Corresponding Bracket

To search for a corresponding bracket from the Java editor, select either the opening bracket or the closing bracket, then select [Navigate] > [Go To] > [Matching Bracket] from the menu.
In addition, users can double-click after the opening bracket or before the closing bracket to select the text enclosed by these two brackets.

Quick Diff

In the text editor, using the Quick Diff function, the differences between the current value and the status that was saved previously or the resource-managed file can be displayed as color coding on the left side of the editor.
The changed content can be checked from a display balloon by holding the mouse cursor over the changed location.

Spell Check

The text editor Spell Check function can be customized in [General] > [Editors] > [Text Editors] > [Spelling] on the preference page.

Format

A format function is provided for the following file types, and the format type can be customized in the preference page.

File Type

Preference Page

Ant script

[Ant] > [Editor] > [Formatter]

Java

[Java] > [Code Style] > [Formatter]

CSS

[Web] > [CSS Files] > [Editor]

HTML

[Web] > [HTML Files] > [Editor]

JSP

[Web] > [JSP Files] > [Editor]

XML file

[XML] > [XML Files] > [Editor]

When the editor is open or when the file is selected in a view, the format can be executed by selecting [Source] > [Format] from the menu.

Cleanup

The editors shown below provide a more powerful cleanup function than format. Open the file from an editor, then select cleanup from the following menus to use this function.

Editor

Menu

Typical Added Functions

Java Editor

[Source] > [Clean Up]

Change of static member access method
Deletion of unused import
Addition of @Override and @Deprecated

HTML/JSP Editor

[Source] > [Cleanup Document]

Uppercase and lowercase unification of tags and attributes
Completion of mandatory attributes and missing tags
Conversion of line delimiters

CSS Editor

[Source] > [Cleanup Document]

Uppercase and lowercase unification

XML Editor

[Source] > [Cleanup Document]

Compression of empty element tags
Insertion of mandatory attributes and missing tags
Conversion of line delimiters

Specifying Syntax Color

The syntax color can be customized in the editors for the following file types from the preference page.

File Type

Preference Page

Ant script

[Ant] > [Editor] [Syntax] tab

Java

[Java] > [Editor] > [Syntax Coloring]

CSS

[Web] > [CSS Files] > [Editor] > [Syntax Coloring]

DTD

[XML] > [DTD Files] > [Syntax Coloring]

HTML

[Web] > [HTML Files] > [Editor] > [Syntax Coloring]

JavaScript

[JavaScript] > [Editor] > [Syntax Coloring]

JSP

[Web] > [JSP Files] > [Editor] > [Syntax Coloring]

XML file

[XML] > [XML Files] > [Editor] > [Syntax Coloring]

Setting Automatic Execution at Save Time

The Java editor can execute actions automatically at save time. Specify these actions from [Java] > [Editor] > [Save Actions] on the preference page.
Formats and import organization can be executed.

Synchronizing Editor and View

If you want to check the location in package explorer or similar, of a file being edited with the Java editor, select [Show In] > [<Select view>] from the context menu. The file that is being edited is made active in the view.

In addition, the file being edited and the view selection can be synchronized by setting [Link Editor] in the upper-right menu of the view.

Switching Files in the Editor

If many files are open in editors, not all file names are displayed in the editor area tabs. The number of undisplayed files is shown by a number at the right edge of the editor tab display area. Click the number to display a list of these files. Users can switch the file being edited by selecting a file from this list.

Back Function

When referencing or editing multiple files using editors, users may want to go back to the location referenced immediately before.
In these cases, the [Back], [Forward], [Last Edit Location] functions are useful. From the menu, select [Navigate] > [Back] or similar. These functions can also be accessed from the toolbar.