CodeInsight page (Editor Options dialog box)

Use the CodeInsight page of the Editor Options dialog box to configure CodeInsight.

To open the CodeInsight page, choose Tools|Editor Options, then click the CodeInsight tab.

JBuilder's CodeInsight displays context-sensitive pop-up windows within the editor that list:

CodeInsight can insert the required member, class, or parameter appropriately into the code.

Important: The project must be compiled for imported classes to be available to CodeInsight.

If the options on this page are selected, the popup windows display after you type the required activation keys (detailed below) on the keyboard and pause for the delay specified by the Delay slider bar.

CodeInsight is available on demand by pressing shortcut keys, even if these options are disabled.

To view or customize the CodeInsight keystrokes, choose Tools|Editor Options and choose the Customize button on the Editor page to open the Keymap Editor. The Keymap Editor is read-only in JBuilder Personal.

CodeInsight shortcut keys

Pop-up window Keystrokes Actions
MemberInsight Ctrl+H Displays methods and members of current scope.
ParameterInsight Ctrl+Shift+H Displays method parameters.
Find Definition Ctrl+Enter Drills down.
ClassInsight Ctrl+Alt+Space or Ctrl+Alt+H Displays ClassInsight where you can search for classes to insert in your code.
Code templates Ctrl+J Displays code templates

Note: For Macintosh, use the Meta key in place of Ctrl.

To commit a CodeInsight selection, press Enter or any non-alphanumeric character, such as: ( (left-facing parenthesis), ) (right-facing parenthesis), + (plus sign), - (minus sign), or the space bar.

Tip: If CodeInsight fails, look for such errors as missing braces or import statements.

Auto Popup MemberInsight

Displays MemberInsight window automatically in the editor after you type the activation character and pause for the delay specified with the Delay slider bar. The Delay slider bar sets the duration of the pause before the member prefix is parsed.

Auto Popup ParameterInsight

Displays the ParameterInsight window automatically in the editor after you type the activation character and pause for the delay specified with the Delay slider bar. The Delay slider bar sets the duration of the pause before the member prefix is parsed.

Advanced Options

MemberInsight

These options control how CodeInsight displays MemberInsight, the list of accessible methods and data members for the current context.

Autocomplete On Invocation

When you invoke MemberInsight and there's only one possible match in the list, that one match is automatically accepted and entered into the code. The pop-up list won't appear. You don't have to press Enter to commit the selection.

To turn off this feature, uncheck the Auto Complete On Invocation checkbox.

Autocomplete While Typing

When this option is selected, the code is completed for you automatically as soon as a match is reached. This feature is off by default. If the Auto Pop-up MemberInsight option is off, this option is also off.

Include classes

Displays class names in the MemberInsight window.

Include deprecated members

Determines whether deprecated methods appear in the list.

Show Class Context

Displays the class name at the top of the pop-up window.

ParameterInsight

These options control how CodeInsight displays ParameterInsight, the list of parameters expected for the current method being coded.

The activation character for ParameterInsight is ( (left-facing parenthesis).

Include Deprecated Methods

Displays parameters for deprecated methods in the ParameterInsight window.

Show Class Context

Displays the class name at the top of the pop-up window.

Display Options button

To customize the CodeInsight display, press the Display Options button to open the CodeInsight Display Options dialog box. Display Options control the settings for CodeInsight features, including color, font, and font size.

See also