CodeInsight (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:

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 enter the required activation characters (detailed below) on the keyboard and pause for the delay specified in the Delay slider bar.

If the options on this page are not selected, CodeInsight is available on demand by pressing shortcut keys.

CodeInsight shortcut keys

Pop-up window Keystrokes Actions
MemberInsight Ctrl + h or Ctrl + Space Displays methods and members of current scope
ParameterInsight Ctrl + Shift + h or Ctrl + Shift + Space Displays method parameters
Class Browser Ctrl + Alt+ h or Ctrl + Alt + Space Displays Class Browser
Symbol Insight Alt + Shift + h or Ctrl + Enter Drills down
Code templates Ctrl + j Displays code templates

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

Auto Popup MemberInsight

Causes the MemberInsight window to automatically pop up 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

Causes the ParameterInsight window to automatically popup 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.

General

Show Error Messages

If this option is on and the MemberInsight or ParameterInsight pop-up cannot be displayed due to compiler errors, CodeInsight expands the error node in the structure pane to display the errors. Also, in some cases, when there is additional information, the main status bar shows short message, such as "Unable to determine type of expression."

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, if there is only one possible match in the list, it is automatically accepted and entered into the code. The pop-up list won't appear. You do not 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.

See also:
Building Applications with JBuilder: "Coding shortcuts"