This is an automated email from the ASF dual-hosted git repository.
git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 0a6fb80 Automated site publishing by Jenkins build 604
0a6fb80 is described below
commit 0a6fb804594c5abbc6bf08e77172b38ecc754b90
Author: jenkins <[email protected]>
AuthorDate: Sat Feb 23 14:51:56 2019 +0000
Automated site publishing by Jenkins build 604
---
content/kb/docs/java/editor-codereference.html | 1056 ++++++++++--------------
1 file changed, 457 insertions(+), 599 deletions(-)
diff --git a/content/kb/docs/java/editor-codereference.html
b/content/kb/docs/java/editor-codereference.html
index d7e1df0..e0fc393 100644
--- a/content/kb/docs/java/editor-codereference.html
+++ b/content/kb/docs/java/editor-codereference.html
@@ -82,7 +82,7 @@
<div class="sectionbody">
<div class="paragraph">
- <p class='reviewed'><i class="fa fa-check-circle"></i> Last
reviewed on 2019-02-17</p>
+ <p class='reviewed'><i class="fa fa-check-circle"></i> Last
reviewed on 2019-02-19</p>
</div>
</div>
@@ -173,91 +173,79 @@
</div>
</div>
<div class="sect1">
-<h2 id="_general_editor_features"><a class="link"
href="#_general_editor_features">General Editor Features</a></h2>
+<h2 id="_general_editor_features">General Editor Features</h2>
<div class="sectionbody">
<div class="sect2">
-<h3 id="_code_formatting"><a class="link" href="#_code_formatting">Code
Formatting</a></h3>
+<h3 id="_code_formatting">Code Formatting</h3>
<div class="paragraph">
<p>Code formatting allows you to set up the editor to layout your source code
in the way that you find most preferable and comfortable to work with. When you
want to format your code simply press:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p><code>Alt-Shift-F</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Alt-Shift-F</code></p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-Shift-F</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-Shift-F</code></p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>or, select <strong>Source > Format</strong> from the menu bar or,
right-click and select <strong>Format</strong>. Your code will then be
formatted according to the rules specified in the Formatting pane.</p>
</div>
<div class="paragraph">
<p>To customize the formatting behaviour, open the formatting pane by
selecting:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p>Tools > Options > Editor > Formatting</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Tools >
Options > Editor > Formatting</p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p>NetBeans > Preferences…​ > Editor > Formatting</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">NetBeans
> Preferences…​ > Editor > Formatting</p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>then select <strong>Language: Java</strong>. From the
<strong>Category:</strong> drop-down list, you can select from a wide range of
customizable elements such as: the number of blank lines, the size of tabs and
indentation, wrapping style, etc. You can preview your changes as you make
them.</p>
</div>
</div>
<div class="sect2">
-<h3 id="_inserting_and_highlighting_braces_brackets_and_quotes"><a
class="link"
href="#_inserting_and_highlighting_braces_brackets_and_quotes">Inserting and
Highlighting Braces, Brackets, and Quotes</a></h3>
+<h3 id="_inserting_and_highlighting_braces_brackets_and_quotes">Inserting and
Highlighting Braces, Brackets, and Quotes</h3>
<div class="paragraph">
<p>By default, the editor automatically inserts matching pairs for braces,
brackets, parentheses and, quote marks. When you type an opening brace and then
press <code>Enter</code>, the closing brace is added automatically. However,
for <code>(</code>, <code>[</code>, <code>"</code>, and <code>'</code>, the
editor inserts the matching pair immediately, and positions the cursor between
them.</p>
</div>
<div class="paragraph">
<p>If, for some reason, this feature is disabled, you can enable it by
selecting:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p>Tools > Options > Editor > Code Completion</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Tools >
Options > Editor > Code Completion</p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p>NetBeans > Preferences…​ > Editor > Code Completion</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">NetBeans
> Preferences…​ > Editor > Code Completion</p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>then in the <strong>Language: All Languages</strong> pane select the
<strong>Insert Closing Brackets Automatically</strong> checkbox.</p>
</div>
@@ -279,29 +267,25 @@ Do not take any notice of the indicated error, because it
does not propose an un
<div class="paragraph">
<p>To customize the highlight colors, select:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p>Tools > Options > Fonts & Colors > Highlighting</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Tools >
Options > Fonts & Colors > Highlighting</p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p>NetBeans > Preferences…​ > Fonts & Colors >
Highlighting</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">NetBeans
> Preferences…​ > Fonts & Colors >
Highlighting</p></td>
</tr>
+</tbody>
</table>
</div>
-</div>
<div class="sect2">
-<h3 id="_code_folding"><a class="link" href="#_code_folding">Code
Folding</a></h3>
+<h3 id="_code_folding">Code Folding</h3>
<div class="paragraph">
<p>In the editor, you can quickly collapse and expand blocks of code, such as
method declarations, Javadoc comments, import statements, etc. Collapsible
blocks are indicated by a gray line with a minus sign in a box attached to the
top of the line in the left-hand margin of the editor. Expandable blocks are
indicated by a box with a plus sign in the same margin.</p>
</div>
@@ -319,60 +303,52 @@ Do not take any notice of the indicated error, because it
does not propose an un
<div class="paragraph">
<p>To customize the code folding options select:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p>Tools > Options > Editor > Folding</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Tools >
Options > Editor > Folding</p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p>NetBeans > Preferences…​ > Editor > Folding</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">NetBeans
> Preferences…​ > Editor > Folding</p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
-<p>then select <strong>Language : Java</strong>. There you will find various
options.</p>
+<p>then select <strong>Language: Java</strong>. There you will find various
options.</p>
</div>
</div>
<div class="sect2">
-<h3 id="_customizing_keyboard_shortcuts"><a class="link"
href="#_customizing_keyboard_shortcuts">Customizing Keyboard Shortcuts</a></h3>
+<h3 id="_customizing_keyboard_shortcuts">Customizing Keyboard Shortcuts</h3>
<div class="paragraph">
<p>To customize keyboard shortcuts, select:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p>Tools > Options > Keymap</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Tools >
Options > Keymap</p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p>NetBeans > Preferences…​ > Keymap</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">NetBeans
> Preferences…​ > Keymap</p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>then select <strong>Manage Profiles…​</strong> . Select the
profile you want to use as a base for your new profile and click
<strong>Duplicate</strong>, rename your profile and click <strong>OK</strong>,
then <strong>Close</strong>.</p>
</div>
<div class="paragraph">
-<p>Ensure that your new profile is selected, <strong>Profile:
<myNewProfileName></strong> and then you can modify the shortcuts you
need.</p>
+<p>Ensure that your new profile is selected, <strong>Profile:
myNewProfileName</strong> and then you can modify the shortcuts you need.</p>
</div>
<div class="paragraph">
<p>To edit a shortcut, double-click in the <strong>Shortcut</strong> field or,
click the ellipsis button ( <code>…​</code> ) and select
<strong>Edit…​</strong> As you press a sequence of keys, the syntax
for them is added. If you want to add special keys, such as: <code>Tab</code>
, <code>Escape</code> or, <code>Enter</code> etc., click the ellipsis button
( <code>…​</code> ) again and select the key from the pop-up
window. When you have finished ed [...]
@@ -387,39 +363,35 @@ Do not take any notice of the indicated error, because it
does not propose an un
</div>
</div>
<div class="sect1">
-<h2 id="_smart_code_completion"><a class="link"
href="#_smart_code_completion">Smart Code Completion</a></h2>
+<h2 id="_smart_code_completion">Smart Code Completion</h2>
<div class="sectionbody">
<div class="paragraph">
<p>The editor helps you quickly complete or generate code through the "smart"
code completion feature. Code completion is very useful when you want to fill
in missing code, it allows you to look at the available options within the
context of your application, and generates fragments of code when required. See
below for examples of how to use code completion.</p>
</div>
<div class="sect2">
-<h3 id="_invoking_code_completion"><a class="link"
href="#_invoking_code_completion">Invoking Code Completion</a></h3>
+<h3 id="_invoking_code_completion">Invoking Code Completion</h3>
<div class="paragraph">
<p>To invoke code completion press <code>Ctrl-Space</code> or, choose
<strong>Source > Complete Code…​</strong> from the menu bar and
a list of appropriate suggestions is presented to you. As you continue to type,
code completion becomes more focussed and the list shortens. The list includes
options imported in your source file and symbols from the
<code>java.lang</code> package.</p>
</div>
<div class="paragraph">
<p>To customize the code completion settings, select:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong> ™
-</td>
-<td class="hdlist2">
-<p>Tools > Options > Editor > Code Completion</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong> ™</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Tools >
Options > Editor > Code Completion</p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong> ™
-</td>
-<td class="hdlist2">
-<p>NetBeans > Preferences…​ > Editor > Code Completion</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong> ™</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">NetBeans
> Preferences…​ > Editor > Code Completion</p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>You can set code completion to pop-up an options list either automatically
or, on an as-needed basis. In the Code Completion pane for <strong>Language:
All Languages</strong>, select the <strong>Auto Popup Completion
Window</strong> checkbox to invoke code completion automatically when you type
certain characters. The default character for <strong>Language: Java</strong>
is " <code>.</code> ", but you can add your own characters.</p>
</div>
@@ -432,26 +404,22 @@ Do not take any notice of the indicated error, because it
does not propose an un
<div class="paragraph">
<p>Instead of using <code>Ctrl-Space</code> for code completion, you can use
"hippie completion". Hippie completion analyzes text in the visible scope by
searching your current document and, if not found, in other documents. Hippie
completion then provides suggestions to complete the current word with a
keyword, class name, method, or variable. To invoke hippie completion press:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-K</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-K</code></p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p><code>Command-K</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Command-K</code></p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>and the editor automatically completes the word you’re typing.
Repeatedly pressing the appropriate key combination will cycle once through all
available options. If you go past your desired option then press the shift key
as well as your key combination and you can reverse.</p>
</div>
@@ -476,7 +444,7 @@ Do not take any notice of the indicated error, because it
does not propose an un
</div>
</div>
<div class="sect2">
-<h3 id="_smart_suggestions_at_the_top"><a class="link"
href="#_smart_suggestions_at_the_top">Smart Suggestions at the Top</a></h3>
+<h3 id="_smart_suggestions_at_the_top">Smart Suggestions at the Top</h3>
<div class="paragraph">
<p>Code completion is "smart", and will present the most relevant suggestions
at the top, above the black line in the code completion list.</p>
</div>
@@ -493,7 +461,7 @@ Do not take any notice of the indicated error, because it
does not propose an un
</div>
</div>
<div class="sect2">
-<h3 id="_camel_case_completion"><a class="link"
href="#_camel_case_completion">Camel Case Completion</a></h3>
+<h3 id="_camel_case_completion">Camel Case Completion</h3>
<div class="paragraph">
<p>Instead of typing consecutive characters, and then calling code completion,
you can type the initial capital letters of the word you’re interested
in.</p>
</div>
@@ -507,7 +475,7 @@ Do not take any notice of the indicated error, because it
does not propose an un
</div>
</div>
<div class="sect2">
-<h3 id="_completing_keywords"><a class="link"
href="#_completing_keywords">Completing Keywords</a></h3>
+<h3 id="_completing_keywords">Completing Keywords</h3>
<div class="paragraph">
<p>Use code completion to complete keywords in your code. The editor analyzes
the context and suggests the most relevant keywords.</p>
</div>
@@ -521,7 +489,7 @@ Do not take any notice of the indicated error, because it
does not propose an un
</div>
</div>
<div class="sect2">
-<h3 id="_suggesting_names_for_variable_and_fields"><a class="link"
href="#_suggesting_names_for_variable_and_fields">Suggesting Names for Variable
and Fields</a></h3>
+<h3 id="_suggesting_names_for_variable_and_fields">Suggesting Names for
Variable and Fields</h3>
<div class="paragraph">
<p>When you are adding a new field or a variable, use code completion to
choose a name that matches its type.</p>
</div>
@@ -535,7 +503,7 @@ Do not take any notice of the indicated error, because it
does not propose an un
</div>
</div>
<div class="sect2">
-<h3 id="_suggesting_parameters"><a class="link"
href="#_suggesting_parameters">Suggesting Parameters</a></h3>
+<h3 id="_suggesting_parameters">Suggesting Parameters</h3>
<div class="paragraph">
<p>The editor determines the most likely parameters for variables, methods, or
fields and displays the suggestions in a pop-up box.</p>
</div>
@@ -545,26 +513,22 @@ Do not take any notice of the indicated error, because it
does not propose an un
<div class="paragraph">
<p>You can invoke the tooltips with method parameters by pressing:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-P</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-P</code></p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p><code>Command-P</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Command-P</code></p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>or, selecting <strong>Source > Show Method Parameters</strong> from the
menu bar at any time.</p>
</div>
@@ -575,7 +539,7 @@ Do not take any notice of the indicated error, because it
does not propose an un
</div>
</div>
<div class="sect2">
-<h3 id="_common_prefix_completion"><a class="link"
href="#_common_prefix_completion">Common Prefix Completion</a></h3>
+<h3 id="_common_prefix_completion">Common Prefix Completion</h3>
<div class="paragraph">
<p>You can use the <code>Tab</code> key to quickly fill in the most commonly
used prefixes and single suggestions. To check out how this feature works, try
typing the following:</p>
</div>
@@ -592,7 +556,7 @@ Do not take any notice of the indicated error, because it
does not propose an un
</div>
</div>
<div class="sect2">
-<h3 id="_subword_completion"><a class="link"
href="#_subword_completion">Subword Completion</a></h3>
+<h3 id="_subword_completion">Subword Completion</h3>
<div class="paragraph">
<p>Sometimes you may not remember how an item starts, making it difficult to
use code completion. For example, to see all items that relate to listening to
property changes, you can use subword completion, so if you type
<code>prop</code> you will see all method calls that relate to property change
listening.</p>
</div>
@@ -604,26 +568,22 @@ Do not take any notice of the indicated error, because it
does not propose an un
<div class="paragraph">
<p>To implement this feature, select:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p>Tools > Options > Editor > Code Completion</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Tools >
Options > Editor > Code Completion</p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p>NetBeans > Preferences…​ > Editor > Code Completion</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">NetBeans
> Preferences…​ > Editor > Code Completion</p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>then select in the <strong>Language: Java</strong> pane, the
<strong>Subword completion</strong> checkbox.</p>
</div>
@@ -632,7 +592,7 @@ Do not take any notice of the indicated error, because it
does not propose an un
</div>
</div>
<div class="sect2">
-<h3 id="_chain_completion"><a class="link" href="#_chain_completion">Chain
Completion</a></h3>
+<h3 id="_chain_completion">Chain Completion</h3>
<div class="paragraph">
<p>When you need to type a chain of commands, you can use code completion. By
pressing <code>Ctrl-Space</code> twice all available chains will be shown.
The editor scans: variables, fields, and methods that are in the visible
context. It will then suggest a chain that satisfies the expected type.</p>
</div>
@@ -643,7 +603,7 @@ Do not take any notice of the indicated error, because it
does not propose an un
</div>
</div>
<div class="sect2">
-<h3 id="_completion_of_static_imports"><a class="link"
href="#_completion_of_static_imports">Completion of Static Imports</a></h3>
+<h3 id="_completion_of_static_imports">Completion of Static Imports</h3>
<div class="paragraph">
<p>When you want to complete a statement and, at the same time, require to
make use of a static import statement, use code completion. By pressing
<code>Ctrl-Space</code> twice, all available static import statements will be
shown.</p>
</div>
@@ -655,32 +615,28 @@ Do not take any notice of the indicated error, because it
does not propose an un
<div class="paragraph">
<p>If you would like static import statements to be added automatically,
select:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p>Tools > Options > Editor > Formatting</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Tools >
Options > Editor > Formatting</p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p>NetBeans > Preferences…​ > Editor > Formatting</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">NetBeans
> Preferences…​ > Editor > Formatting</p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>then from the <strong>Language: Java</strong>, <strong>Category:
Imports</strong> pane select the <strong>Prefer Static Imports</strong>
checkbox.</p>
</div>
</div>
<div class="sect2">
-<h3 id="_excluding_items_from_completion"><a class="link"
href="#_excluding_items_from_completion">Excluding Items from
Completion</a></h3>
+<h3 id="_excluding_items_from_completion">Excluding Items from Completion</h3>
<div class="paragraph">
<p>Time can be wasted when code completion returns classes that you seldom or
never use. When you invoke code completion, a lightbulb within the returned
items indicates that you can exclude them from the code completion list.</p>
</div>
@@ -692,26 +648,22 @@ Do not take any notice of the indicated error, because it
does not propose an un
<div class="paragraph">
<p>You can add or modify your exclusion rules either when "Configure excludes"
is selected from the code completion list or, by selecting:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p>Tools > Options > Editor > Code Completion</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Tools >
Options > Editor > Code Completion</p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p>NetBeans > Preferences…​ > Editor > Code Completion</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">NetBeans
> Preferences…​ > Editor > Code Completion</p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>then in the <strong>Language: Java</strong> pane, make your changes to the
<strong>Packages/classes:</strong> list.</p>
</div>
@@ -722,7 +674,7 @@ Do not take any notice of the indicated error, because it
does not propose an un
</div>
</div>
<div class="sect2">
-<h3 id="_jpa_completion"><a class="link" href="#_jpa_completion">JPA
Completion</a></h3>
+<h3 id="_jpa_completion">JPA Completion</h3>
<div class="paragraph">
<p>When you are using the Java Persistence Annotation specification (JPA), you
can complete SQL expressions in <code>@NamedQuery</code> statements via code
completion.</p>
</div>
@@ -732,13 +684,13 @@ Do not take any notice of the indicated error, because it
does not propose an un
</div>
</div>
<div class="paragraph">
-<p>In the code completion window, icons are used to distinguish different
members of the Java language. See <a href="#appendixa">Appendix A: Icons in the
Code Completion Window</a> at the end of this document to see the meanings of
these icons.</p>
+<p>In the code completion window, icons are used to distinguish different
members of the Java language. See <a
href="#_appendix_a_icons_in_the_code_completion_window">Appendix A: Icons in
the Code Completion Window</a> at the end of this document to see the meanings
of these icons.</p>
</div>
</div>
</div>
</div>
<div class="sect1">
-<h2 id="_managing_imports"><a class="link" href="#_managing_imports">Managing
Imports</a></h2>
+<h2 id="_managing_imports">Managing Imports</h2>
<div class="sectionbody">
<div class="paragraph">
<p>There are several ways of working with import statements. The editor
constantly checks your code for the correct use of import statements and
immediately warns you when non-imported classes or unused import statements are
detected.</p>
@@ -754,52 +706,44 @@ Do not take any notice of the indicated error, because it
does not propose an un
<div class="paragraph">
<p>While you are typing, press:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-Shift-I</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-Shift-I</code></p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p><code>Command-Shift-I</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Command-Shift-I</code></p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>or, choose <strong>Source > Fix Imports</strong> from the menu bar or,
right-click and choose <strong>Source > Fix Imports</strong>, to add all
missing import statements and, remove all unused import statements at once.</p>
</div>
<div class="paragraph">
<p>To add an import only for the type at which the cursor is located,
press:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p><code>Alt-Shift-I</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Alt-Shift-I</code></p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-Shift-I</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-Shift-I</code></p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="imageblock">
<div class="content">
<img src="images/imports2.png" alt="imports2">
@@ -825,62 +769,54 @@ Do not take any notice of the indicated error, because it
does not propose an un
<div class="paragraph">
<p>You can specify that, whenever you save a file, all the unused imports
should automatically be removed, select:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p>Select Tools > Options > Editor > On Save</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Select
Tools > Options > Editor > On Save</p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p>NetBeans > Preferences…​ > Editor > On Save</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">NetBeans
> Preferences…​ > Editor > On Save</p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>then for <strong>Language: Java</strong>, select the <strong>Remove Unused
Imports</strong> checkbox.</p>
</div>
</div>
</div>
<div class="sect1">
-<h2 id="_generating_code"><a class="link" href="#_generating_code">Generating
Code</a></h2>
+<h2 id="_generating_code">Generating Code</h2>
<div class="sectionbody">
<div class="paragraph">
<p>When working in the Java editor, you can generate pieces of code in one of
two ways: by using code completion or from the Code Generation dialog box.
Let’s take a closer look at simple examples of automatic code
generation.</p>
</div>
<div class="sect2">
-<h3 id="_using_the_code_generation_dialog_box"><a class="link"
href="#_using_the_code_generation_dialog_box">Using the Code Generation Dialog
Box</a></h3>
+<h3 id="_using_the_code_generation_dialog_box">Using the Code Generation
Dialog Box</h3>
<div class="paragraph">
<p>In the editor, you can automatically generate: various constructs, whole
methods, override and delegate methods, add properties and more. To invoke code
generation, press:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p><code>Alt-Insert</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Alt-Insert</code></p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-I</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-I</code></p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>or, choose <strong>Source > Insert Code…​</strong> from the
menu bar or, right-click and select <strong>Insert Code…​</strong>
anywhere in the editor to insert a construct from the Code Generation box. The
suggested list is adjusted to the current context.</p>
</div>
@@ -894,7 +830,7 @@ Do not take any notice of the indicated error, because it
does not propose an un
</div>
</div>
<div class="sect2">
-<h3 id="_using_code_completion"><a class="link"
href="#_using_code_completion">Using Code Completion</a></h3>
+<h3 id="_using_code_completion">Using Code Completion</h3>
<div class="paragraph">
<p>You can also generate code from the code completion window. In this
example, we use the same code fragment as above to demonstrate code generation
from the code completion window.</p>
</div>
@@ -916,13 +852,13 @@ Do not take any notice of the indicated error, because it
does not propose an un
</div>
</div>
<div class="sect1">
-<h2 id="_code_templates"><a class="link" href="#_code_templates">Code
Templates</a></h2>
+<h2 id="_code_templates">Code Templates</h2>
<div class="sectionbody">
<div class="paragraph">
<p>A Code Template is a predefined piece of code that has an abbreviation
associated with it.</p>
</div>
<div class="sect2">
-<h3 id="_using_code_templates"><a class="link"
href="#_using_code_templates">Using Code Templates</a></h3>
+<h3 id="_using_code_templates">Using Code Templates</h3>
<div class="paragraph">
<p>Code templates are marked with the <span class="image"><img
src="images/codetemplateicon.png" alt="codetemplateicon"></span> icon in the
code completion window.</p>
</div>
@@ -935,26 +871,22 @@ Do not take any notice of the indicated error, because it
does not propose an un
<p>You can use code templates by selecting one from the code completion window
or,
by typing its abbreviation, found by selecting:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p>Tools > Options > Editor > Code Templates</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Tools >
Options > Editor > Code Templates</p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p>NetBeans > Preferences…​ > Editor > Code Templates</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">NetBeans
> Preferences…​ > Editor > Code Templates</p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>and then <strong>Language: Java</strong> in the <strong>Code
Templates</strong> pane.</p>
</div>
@@ -963,30 +895,26 @@ by typing its abbreviation, found by selecting:</p>
</div>
</div>
<div class="sect2">
-<h3 id="_adding_or_editing_code_templates"><a class="link"
href="#_adding_or_editing_code_templates">Adding or Editing Code
Templates</a></h3>
+<h3 id="_adding_or_editing_code_templates">Adding or Editing Code
Templates</h3>
<div class="paragraph">
<p>To add or edit code templates, select:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p>Tools > Options > Editor > Code Templates</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Tools >
Options > Editor > Code Templates</p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p>NetBeans > Preferences…​ > Editor > Code Templates</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">NetBeans
> Preferences…​ > Editor > Code Templates</p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>then select <strong>Language: Java</strong>. In the
<strong>Templates:</strong> window you will be pesented with a list of
abbreviations each with an expanded text and description.</p>
</div>
@@ -1003,36 +931,32 @@ by typing its abbreviation, found by selecting:</p>
</div>
</div>
<div class="sect1">
-<h2 id="_working_with_javadoc"><a class="link"
href="#_working_with_javadoc">Working with Javadoc</a></h2>
+<h2 id="_working_with_javadoc">Working with Javadoc</h2>
<div class="sectionbody">
<div class="paragraph">
<p>Use the following features to facilitate working with Javadoc for your
code.</p>
</div>
<div class="sect2">
-<h3 id="_displaying_javadoc"><a class="link"
href="#_displaying_javadoc">Displaying Javadoc</a></h3>
+<h3 id="_displaying_javadoc">Displaying Javadoc</h3>
<div class="paragraph">
<p>To display Javadoc, place the cursor on an element in your code and,
press:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-Shift-Space</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-Shift-Space</code></p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p><code>Command-Shift-\</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Command-Shift-\</code></p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>or choose <strong>Source > Show Documentation</strong> from the menu
bar. The Javadoc for this element is displayed in a popup window.</p>
</div>
@@ -1046,7 +970,7 @@ by typing its abbreviation, found by selecting:</p>
</div>
</div>
<div class="sect2">
-<h3 id="_creating_javadoc_stubs"><a class="link"
href="#_creating_javadoc_stubs">Creating Javadoc Stubs</a></h3>
+<h3 id="_creating_javadoc_stubs">Creating Javadoc Stubs</h3>
<div class="paragraph">
<p>Place the cursor above a method or a class that has no Javadoc, type
<code>"/**</code> ", and press <code>Enter</code> .</p>
</div>
@@ -1060,7 +984,7 @@ by typing its abbreviation, found by selecting:</p>
</div>
</div>
<div class="sect2">
-<h3 id="_using_javadoc_hints"><a class="link"
href="#_using_javadoc_hints">Using Javadoc Hints</a></h3>
+<h3 id="_using_javadoc_hints">Using Javadoc Hints</h3>
<div class="paragraph">
<p>The editor displays hints when Javadoc is missing or Javadoc tags are
needed by displaying the bulb icon <span class="image"><img
src="images/bulb.png" alt="bulb"></span> in the left-hand margin, click the
bulb icon to fix Javadoc errors.</p>
</div>
@@ -1072,32 +996,28 @@ by typing its abbreviation, found by selecting:</p>
<div class="paragraph">
<p>If you do not want to see the hints related to Javadoc, select:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p>Tools > Options > Editor > Hints</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Tools >
Options > Editor > Hints</p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p>NetBeans > Preferences…​ > Editor > Hints</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">NetBeans
> Preferences…​ > Editor > Hints</p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>and clear the <strong>JavaDoc</strong> checkbox in the list of hints that
are displayed.</p>
</div>
</div>
<div class="sect2">
-<h3 id="_using_code_completion_for_javadoc_tags"><a class="link"
href="#_using_code_completion_for_javadoc_tags">Using Code Completion for
Javadoc Tags</a></h3>
+<h3 id="_using_code_completion_for_javadoc_tags">Using Code Completion for
Javadoc Tags</h3>
<div class="paragraph">
<p>Code completion is available for Javadoc tags.</p>
</div>
@@ -1111,7 +1031,7 @@ by typing its abbreviation, found by selecting:</p>
</div>
</div>
<div class="sect2">
-<h3 id="_generating_javadoc"><a class="link"
href="#_generating_javadoc">Generating Javadoc</a></h3>
+<h3 id="_generating_javadoc">Generating Javadoc</h3>
<div class="paragraph">
<p>To generate Javadoc for a project, select <strong>Run > Generate
Javadoc</strong> from the menu bar or, right-click the project in the
<strong>Projects</strong> window and choose Generate Javadoc. The IDE will
generate the Javadoc and open it in a separate browser window.</p>
</div>
@@ -1128,7 +1048,7 @@ by typing its abbreviation, found by selecting:</p>
</div>
</div>
<div class="sect2">
-<h3 id="_analyzing_javadoc"><a class="link"
href="#_analyzing_javadoc">Analyzing Javadoc</a></h3>
+<h3 id="_analyzing_javadoc">Analyzing Javadoc</h3>
<div class="paragraph">
<p>To identify the places in your code that need Javadoc comments and quickly
insert these comments, you can use the Javadoc Analyzer tool available in the
Java editor.</p>
</div>
@@ -1153,39 +1073,35 @@ by typing its abbreviation, found by selecting:</p>
</div>
</div>
<div class="sect1">
-<h2 id="_using_hints"><a class="link" href="#_using_hints">Using Hints</a></h2>
+<h2 id="_using_hints">Using Hints</h2>
<div class="sectionbody">
<div class="paragraph">
<p>While you are typing, the Java editor checks your code and provides
suggestions of how you can fix errors and navigate through code. The examples
below show the types of hints that are available in the editor and how to
customize them.</p>
</div>
<div class="sect2">
-<h3 id="_using_hints_to_fix_code"><a class="link"
href="#_using_hints_to_fix_code">Using Hints to Fix Code</a></h3>
+<h3 id="_using_hints_to_fix_code">Using Hints to Fix Code</h3>
<div class="paragraph">
<p>For the most common coding mistakes, you can see hints in the left-hand
margin of the editor. The hints are shown for many types of errors, such as
missing field and variable definitions, problems with imports, braces, and
other. Click the hint icon and select the fix to add to your code.</p>
</div>
<div class="paragraph">
<p>Hints are displayed automatically by default. However, if you want to view
all hints, choose <strong>Source > Fix Code</strong> from the menu bar or,
press:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p><code>Alt-Enter</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Alt-Enter</code></p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-Enter</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-Enter</code></p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>For example, try typing <code>myBoolean=true</code>. The editor detects
that this variable is not defined. Click the hint icon <span class="image"><img
src="images/bulberror1.png" alt="bulberror1"></span> and, see the editor
suggests that you create a field, a method parameter, or a local variable.</p>
</div>
@@ -1196,33 +1112,29 @@ by typing its abbreviation, found by selecting:</p>
</div>
</div>
<div class="sect2">
-<h3 id="_surround_with"><a class="link" href="#_surround_with">Surround
With…​</a></h3>
+<h3 id="_surround_with">Surround With…​</h3>
<div class="paragraph">
<p>You can easily surround pieces of your code with various statements, such
as <code>for</code>, <code>while</code>, <code>if</code>,
<code>try/catch</code>, etc.</p>
</div>
<div class="paragraph">
<p>Select a block in your code that you want to surround with a statement and
click the bulb icon <span class="image"><img src="images/bulb.png"
alt="bulb"></span> in the left-hand margin or, choose <strong>Source > Fix
Code</strong> from the menu bar or, press:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p><code>Alt-Enter</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Alt-Enter</code></p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-Enter</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-Enter</code></p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>The editor displays a pop-up list of suggestions from which you can select
the statement you need.</p>
</div>
@@ -1233,30 +1145,26 @@ by typing its abbreviation, found by selecting:</p>
</div>
</div>
<div class="sect2">
-<h3 id="_customizing_hints"><a class="link"
href="#_customizing_hints">Customizing Hints</a></h3>
+<h3 id="_customizing_hints">Customizing Hints</h3>
<div class="paragraph">
<p>You might want to limit the number of categories for which hints are
displayed. To do this, select:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p>Tools > Options > Editor > Hints</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Tools >
Options > Editor > Hints</p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p>NetBeans > Preferences…​ > Editor > Hints</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">NetBeans
> Preferences…​ > Editor > Hints</p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>then select <strong>Language: Java</strong> from the drop-down list. You
are presented with a list of elements for which hints can be displayed, select
the checkboxes of those that you want and deselect those you don’t.</p>
</div>
@@ -1280,39 +1188,35 @@ by typing its abbreviation, found by selecting:</p>
</div>
</div>
<div class="sect1">
-<h2 id="_semantic_coloring_and_highlighting"><a class="link"
href="#_semantic_coloring_and_highlighting">Semantic Coloring and
Highlighting</a></h2>
+<h2 id="_semantic_coloring_and_highlighting">Semantic Coloring and
Highlighting</h2>
<div class="sectionbody">
<div class="paragraph">
<p>The IDE’s Java editor shows code elements in distinct colors, based
on the semantics of your code. With semantic coloring, it becomes easier for
you to identify various elements in your code. In addition to coloring, the
Java editor highlights similar elements with a particular background color.
Thus, you can think of the highlighting feature as an alternative to the Search
command, because in combination with error stripes, it gives you a quick
overview of where the highlighted [...]
</div>
<div class="sect2">
-<h3 id="_customizing_colors"><a class="link"
href="#_customizing_colors">Customizing Colors</a></h3>
+<h3 id="_customizing_colors">Customizing Colors</h3>
<div class="paragraph">
<p>The IDE provides several preset coloring schemes, which are called
profiles. You can create new profiles with custom colors and quickly switch
between them.</p>
</div>
<div class="paragraph">
<p>To customize semantic coloring settings for the Java editor, select:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p>Tools > Options > Fonts & Colors</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Tools >
Options > Fonts & Colors</p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p>NetBeans > Preferences…​ > Fonts & Colors</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">NetBeans
> Preferences…​ > Fonts & Colors</p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>It is preferable to save custom colors in new profiles, to do this use the
following method:</p>
</div>
@@ -1325,7 +1229,7 @@ by typing its abbreviation, found by selecting:</p>
<p>Click <strong>Duplicate</strong> next to the <strong>Profile:</strong> and,
enter a name for your new profile and click <strong>OK</strong>.</p>
</li>
<li>
-<p>Ensure that your new profile is currently selected <strong>Profile:
<myNewColorProfile></strong> and select <strong>Language:
Java</strong>.</p>
+<p>Ensure that your new profile is currently selected <strong>Profile:
myNewColorProfile</strong> and select <strong>Language: Java</strong>.</p>
</li>
<li>
<p>Select a <strong>Category:</strong> and then change the
<strong>Font:</strong>, <strong>Foreground:</strong>,
<strong>Background:</strong>, and <strong>Effects:</strong> for this category.
Use the <strong>Preview:</strong> window to view the results and when satisfied
click <strong>OK</strong>.</p>
@@ -1346,30 +1250,26 @@ All NetBeans IDE settings and profiles are stored in
the <em>NetBeans userdir</e
</div>
</div>
<div class="sect2">
-<h3 id="_exporting_and_importing_settings"><a class="link"
href="#_exporting_and_importing_settings">Exporting and Importing
Settings</a></h3>
+<h3 id="_exporting_and_importing_settings">Exporting and Importing
Settings</h3>
<div class="paragraph">
<p>To export IDE settings, select:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p>Tools > Options</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Tools >
Options</p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p>NetBeans > Preferences…​</p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">NetBeans
> Preferences…​</p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>and click <strong>Export</strong>, specify the location and name of the ZIP
file that will be created. Select the settings that you want to export and
click <strong>OK</strong>.</p>
</div>
@@ -1381,7 +1281,7 @@ All NetBeans IDE settings and profiles are stored in the
<em>NetBeans userdir</e
</div>
</div>
<div class="sect2">
-<h3 id="_coloring_example"><a class="link" href="#_coloring_example">Coloring
Example</a></h3>
+<h3 id="_coloring_example">Coloring Example</h3>
<div class="paragraph">
<p>In the figure below, you can see an example of a coloring scheme. Depending
upon your custom settings, your colors might look differently from those
shown.</p>
</div>
@@ -1408,7 +1308,7 @@ All NetBeans IDE settings and profiles are stored in the
<em>NetBeans userdir</e
</div>
</div>
<div class="sect2">
-<h3 id="_using_highlights"><a class="link" href="#_using_highlights">Using
Highlights</a></h3>
+<h3 id="_using_highlights">Using Highlights</h3>
<div class="imageblock">
<div class="content">
<img src="images/highlightelement.png" alt="highlightelement">
@@ -1418,7 +1318,7 @@ All NetBeans IDE settings and profiles are stored in the
<em>NetBeans userdir</e
<p>The IDE highlights usages of the same element, matching braces, method exit
points, and exception throwing points.</p>
</div>
<div class="paragraph">
-<p>If you place the cursor in an element, such as a field or a variable, all
usages of this element are highlighted. Note that error stripes in the
editor’s righthand margin indicate the usages of this element in the
entire source file (see <a href="#stripes">Error Stripes</a>). Click the error
stripe to quickly navigate to the desired usage location.</p>
+<p>If you place the cursor in an element, such as a field or a variable, all
usages of this element are highlighted. Note that error stripes in the
editor’s righthand margin indicate the usages of this element in the
entire source file, see: <a href="#_error_stripes">Error Stripes</a>. Click the
error stripe to quickly navigate to the desired usage location.</p>
</div>
<div class="paragraph">
<p>If you decide to rename all the highlighted instances, use the Instant
Rename command (Ctrl-R or choose Refactor > Rename).</p>
@@ -1427,13 +1327,13 @@ All NetBeans IDE settings and profiles are stored in
the <em>NetBeans userdir</e
</div>
</div>
<div class="sect1">
-<h2 id="_navigation"><a class="link" href="#_navigation">Navigation</a></h2>
+<h2 id="_navigation">Navigation</h2>
<div class="sectionbody">
<div class="paragraph">
<p>The Java editor provides numerous ways to navigate through code. See below
for several examples that show the navigation features of the Java editor.</p>
</div>
<div class="sect2">
-<h3 id="_error_stripes"><a class="link" href="#_error_stripes">Error
Stripes</a></h3>
+<h3 id="_error_stripes">Error Stripes</h3>
<div class="paragraph">
<p>Error stripes in the right-hand margin of the editor provide a quick
overview of all: errors, warnings, hints, highlighted occurrences, and
annotations in the current file. Note that the error stripe margin represents
an entire file, not just the part that is currently displayed in the editor.</p>
</div>
@@ -1442,7 +1342,7 @@ All NetBeans IDE settings and profiles are stored in the
<em>NetBeans userdir</e
</div>
</div>
<div class="sect2">
-<h3 id="_navigating_from_the_editor_go_to"><a class="link"
href="#_navigating_from_the_editor_go_to">Navigating From the Editor: Go
to…​</a></h3>
+<h3 id="_navigating_from_the_editor_go_to">Navigating From the Editor: Go
to…​</h3>
<div class="paragraph">
<p>There are many ways of navigating through your code, use the following the
"Go to…​" commands located under the <strong>Navigate</strong> menu
to quickly jump to target locations:</p>
</div>
@@ -1452,52 +1352,44 @@ All NetBeans IDE settings and profiles are stored in
the <em>NetBeans userdir</e
<div class="paragraph">
<p><strong>Go to declaration</strong>, press:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-B</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-B</code></p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-Shift-G</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-Shift-G</code></p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>or, select <strong>Navigate > Go to Declaration</strong> from the menu
bar or, right-click and select <strong>Navigate > Go To Declaration</strong>
from the pop-up menu. The editor then moves the cursor to its declaration
within: the current file or, if not there opens the appropriate file and
positions the cursor to the declaration of your selected item.</p>
</div>
<div class="paragraph">
<p><strong>Go to source</strong>, press:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-Shift-B</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-Shift-B</code></p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p><code>Command-Shift-B</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Command-Shift-B</code></p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>or, select <strong>Navigate > Go to Source</strong> from the menu bar
or, right-click and select <strong>Navigate > Go to Source</strong> from the
pop-up menu. The result of this action is similar to that of "go to
declaration". However, in this case it opens the file of the original "source
declaration".</p>
</div>
@@ -1510,26 +1402,22 @@ All NetBeans IDE settings and profiles are stored in
the <em>NetBeans userdir</e
<div class="paragraph">
<p><strong>Go to type</strong>, press:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-O</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-O</code></p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p><code>Command-O</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Command-O</code></p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>or, select <strong>Navigate > Go to Type…​</strong> from the
menu bar.</p>
</div>
@@ -1541,52 +1429,44 @@ All NetBeans IDE settings and profiles are stored in
the <em>NetBeans userdir</e
<div class="paragraph">
<p><strong>Go to file</strong>, press:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p><code>Alt-Shift-O</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Alt-Shift-O</code></p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-Shift-O</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-Shift-O</code></p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>or, select <strong>Navigate > Go to File…​</strong> from the
menu bar.</p>
</div>
<div class="paragraph">
<p><strong>Go to symbol</strong>, press:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-Alt-Shift-O</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-Alt-Shift-O</code></p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-Shift-Command-O</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-Shift-Command-O</code></p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>or, select <strong>Navigate > Go to Symbol…​</strong> from
the menu bar.</p>
</div>
@@ -1600,7 +1480,7 @@ All NetBeans IDE settings and profiles are stored in the
<em>NetBeans userdir</e
</div>
</div>
<div class="sect2">
-<h3 id="_jumping_to_last_edit"><a class="link"
href="#_jumping_to_last_edit">Jumping to Last Edit</a></h3>
+<h3 id="_jumping_to_last_edit">Jumping to Last Edit</h3>
<div class="paragraph">
<p>To quickly return to your last edit, even if it is in another file or
project, press <code>Ctrl-Q</code> or use the button in the top left corner of
the Java editor toolbar. The last edited document opens, and the cursor is at
the position, which you edited last.</p>
</div>
@@ -1611,7 +1491,7 @@ All NetBeans IDE settings and profiles are stored in the
<em>NetBeans userdir</e
</div>
</div>
<div class="sect2">
-<h3 id="_using_breadcrumbs"><a class="link" href="#_using_breadcrumbs">Using
Breadcrumbs</a></h3>
+<h3 id="_using_breadcrumbs">Using Breadcrumbs</h3>
<div class="paragraph">
<p>Breadcrumbs are displayed along the bottom of the editor, the position of
the cursor in the document determines the breadcrumbs displayed. To activate
breadcrumbs, select <strong>View > Show Breadcrumbs</strong> from the menu
bar.</p>
</div>
@@ -1625,59 +1505,51 @@ All NetBeans IDE settings and profiles are stored in
the <em>NetBeans userdir</e
</div>
</div>
<div class="sect2">
-<h3 id="_switching_between_files"><a class="link"
href="#_switching_between_files">Switching Between Files</a></h3>
+<h3 id="_switching_between_files">Switching Between Files</h3>
<div class="paragraph">
<p>There are several features that allow you to switch between open files:</p>
</div>
<div class="paragraph">
<p>To go to a previously edited file, press:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p><code>Alt-Left</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Alt-Left</code></p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-Left</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-Left</code></p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>or, select <strong>Navigate > Back</strong>, from the menu bar.</p>
</div>
<div class="paragraph">
<p>To move forward press:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p><code>Alt-Right</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Alt-Right</code></p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-Right</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-Right</code></p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>or, select <strong>Navigate > Forward</strong>, from the menu bar.</p>
</div>
@@ -1727,30 +1599,26 @@ If you continue pressing the <code>Tab</code> key you
will also cycle through th
</div>
</div>
<div class="sect2">
-<h3 id="_using_bookmarks"><a class="link" href="#_using_bookmarks">Using
Bookmarks</a></h3>
+<h3 id="_using_bookmarks">Using Bookmarks</h3>
<div class="paragraph">
<p>You can use bookmarks to quickly navigate to specific places in your code.
To create a bookmark, place the cursor anywhere in a line of code and,
press:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-Shift-M</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-Shift-M</code></p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p><code>Command-Shift-M</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Command-Shift-M</code></p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>or, select <strong>Navigate > Toggle Bookmark</strong> from the menu bar
or, right-click the left margin and choose <strong>Bookmark > Toggle
Bookmark</strong>.</p>
</div>
@@ -1774,49 +1642,41 @@ If you continue pressing the <code>Tab</code> key you
will also cycle through th
<div class="paragraph">
<p>To go to the next bookmark, press:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-Shift-Period</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-Shift-Period</code></p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p><code>Command-Shift-Period</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Command-Shift-Period</code></p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>To go to the previous bookmark, press:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-Shift-Comma</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-Shift-Comma</code></p></td>
</tr>
<tr>
-<td class="hdlist1">
-<strong>macOS</strong>™
-</td>
-<td class="hdlist2">
-<p><code>Command-Shift-Comma</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>macOS</strong>™</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Command-Shift-Comma</code></p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="paragraph">
<p>Automatically a pop-up list of bookmarks appears containing all the
bookmarks visited in your current session, including those files that are not
currently open in the editor.</p>
</div>
@@ -1832,7 +1692,7 @@ If you continue pressing the <code>Tab</code> key you
will also cycle through th
<p>If the file is not the topmost, the editor will switch to that file and
move the cursor to the selected bookmark. Selecting a bookmark in a closed file
will cause the editor to open that file and position the cursor at the required
bookmark.</p>
</div>
<div class="paragraph">
-<p>If you select the <strong><Bookmarks></strong> item in the pop-up
list, as shown in the figure above or, when you select <strong>Window > IDE
Tools > Bookmarks</strong> from the menu bar, the <strong>Bookmarks</strong>
window opens.</p>
+<p>If you select the <strong>Bookmarks</strong> item in the pop-up list, as
shown in the figure above or, when you select <strong>Window > IDE Tools
> Bookmarks</strong> from the menu bar, the <strong>Bookmarks</strong>
window opens.</p>
</div>
<div class="imageblock">
<div class="content">
@@ -1847,7 +1707,7 @@ If you continue pressing the <code>Tab</code> key you
will also cycle through th
</div>
</div>
<div class="sect2">
-<h3 id="_using_the_navigator"><a class="link"
href="#_using_the_navigator">Using the Navigator</a></h3>
+<h3 id="_using_the_navigator">Using the Navigator</h3>
<div class="paragraph">
<p>The Navigator window provides structured views of the file you are working
with and lets you quickly navigate between different parts of the file.</p>
</div>
@@ -1859,18 +1719,18 @@ If you continue pressing the <code>Tab</code> key you
will also cycle through th
<div class="paragraph">
<p>To open the Navigator window, choose <strong>Window > Navigator</strong>
or, press:</p>
</div>
-<div class="hdlist">
-<table>
+<table class="tableblock frame-none grid-none" style="width: 75%;">
+<colgroup>
+<col style="width: 20%;">
+<col style="width: 80%;">
+</colgroup>
+<tbody>
<tr>
-<td class="hdlist1">
-<strong>Windows</strong>™/<strong>Linux</strong>
-</td>
-<td class="hdlist2">
-<p><code>Ctrl-7</code></p>
-</td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><strong>Windows</strong>™/<strong>Linux</strong></p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock"><code>Ctrl-7</code></p></td>
</tr>
+</tbody>
</table>
-</div>
<div class="admonitionblock note">
<table>
<tr>
@@ -1878,7 +1738,7 @@ If you continue pressing the <code>Tab</code> key you
will also cycle through th
<i class="fa icon-note" title="Note"></i>
</td>
<td class="content">
-There is no keyboard shortcut set for <strong>macOS</strong>™. See
<strong>Customizing Keyboard Shortcuts</strong> to learn how to set missing
shortcuts.
+There is no keyboard shortcut set for |<strong>macOS</strong>™. See
<strong>Customizing Keyboard Shortcuts</strong> to learn how to set missing
shortcuts.
</td>
</tr>
</table>
@@ -1909,7 +1769,7 @@ There is no keyboard shortcut set for
<strong>macOS</strong>™. See <strong
</div>
</div>
<div class="sect1">
-<h2 id="_appendix_a_icons_in_the_code_completion_window"><a class="link"
href="#_appendix_a_icons_in_the_code_completion_window">Appendix A: Icons in
the Code Completion Window</a></h2>
+<h2 id="_appendix_a_icons_in_the_code_completion_window">Appendix A: Icons in
the Code Completion Window</h2>
<div class="sectionbody">
<table class="tableblock frame-all grid-all spread">
<colgroup>
@@ -1918,15 +1778,13 @@ There is no keyboard shortcut set for
<strong>macOS</strong>™. See <strong
<col style="width: 12.5%;">
<col style="width: 37.5%;">
</colgroup>
-<thead>
+<tbody>
<tr>
-<th class="tableblock halign-left valign-top">Icon</th>
-<th class="tableblock halign-left valign-top">Meaning</th>
-<th class="tableblock halign-left valign-top">Variants (if any)</th>
-<th class="tableblock halign-left valign-top">Meaning</th>
+<td class="tableblock halign-left valign-top"><p
class="tableblock">Icon</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock">Meaning</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock">Variants</p></td>
+<td class="tableblock halign-left valign-top"><p
class="tableblock">Meaning</p></td>
</tr>
-</thead>
-<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><span
class="image"><img src="images/annotation_type.png" alt="annotation
type"></span></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Annotation
type</p></td>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists