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.
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 symbol 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.
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.
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.
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."
These options control how CodeInsight displays MemberInsight, the list of accessible methods and data members for the current context.
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.
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.
Displays class names in the MemberInsight window.
Determines whether deprecated methods appear in the list.
Displays the class name at the top of the pop-up window.
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).
Displays parameters for deprecated methods in the ParameterInsight window.
Displays the class name at the top of the pop-up window.
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