This is an automated email from the ASF dual-hosted git repository.
geertjan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans-website.git
The following commit(s) were added to refs/heads/master by this push:
new d73c779 Hopefully corrected formatting (#319)
d73c779 is described below
commit d73c779a9cf6ab1df25b1bc455b086962b9de123
Author: JeremyCavanagh <[email protected]>
AuthorDate: Sat Feb 23 15:49:40 2019 +0100
Hopefully corrected formatting (#319)
* Rewritten document to include macOS details
* Revised image
* Added Linux as suggested by Laszlo
* Revised formatting for Windows/Linux,macOS sections
* Corrected revision date
* Revised formatting
* minor typo
* Minor typos
---
.../kb/docs/java/editor-codereference.asciidoc | 315 +++++++++++++--------
1 file changed, 195 insertions(+), 120 deletions(-)
diff --git
a/netbeans.apache.org/src/content/kb/docs/java/editor-codereference.asciidoc
b/netbeans.apache.org/src/content/kb/docs/java/editor-codereference.asciidoc
index ff7857e..eee50f6 100644
--- a/netbeans.apache.org/src/content/kb/docs/java/editor-codereference.asciidoc
+++ b/netbeans.apache.org/src/content/kb/docs/java/editor-codereference.asciidoc
@@ -17,23 +17,22 @@
// under the License.
//
-//============================================================ The Title
(Start)
+//=============================================== The Title and Metadata
(Start)
= Code Assistance in the NetBeans IDE Java Editor: A Reference Guide
:jbake-type: tutorial
:jbake-tags: tutorials
:jbake-status: published
-:reviewed: 2019-02-17
+:reviewed: 2019-02-19
:syntax: true
:source-highlighter: pygments
:toc: left
:toc-title:
:icons: font
-:sectlinks:
:description: Code Assistance in the NetBeans IDE Java Editor: A Reference
Guide - Apache NetBeans
:keywords: Apache NetBeans, Tutorials, Code Assistance in the NetBeans IDE
Java Editor: A Reference Guide
-//=============================================================== Metadata
(End)
+//================================================= The Title and Metadata
(End)
//============================================================= Preamble
(Start)
@@ -51,17 +50,21 @@ The purpose of any integrated development environment (IDE)
is to maximize produ
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:
-[horizontal]
-*Windows*(TM)/*Linux*:: `Alt-Shift-F`
-*macOS*(TM):: `Ctrl-Shift-F`
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |`Alt-Shift-F`
+|*macOS*(TM) |`Ctrl-Shift-F`
+|===
or, select *Source > Format* from the menu bar or, right-click and select
*Format*. Your code will then be formatted according to the rules specified in
the Formatting pane.
To customize the formatting behaviour, open the formatting pane by selecting:
-[horizontal]
-*Windows*(TM)/*Linux*:: Tools > Options > Editor > Formatting
-*macOS*(TM):: NetBeans > Preferences... > Editor > Formatting
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |Tools > Options > Editor > Formatting
+|*macOS*(TM) |NetBeans > Preferences... > Editor > Formatting
+|===
then select *Language: Java*. From the *Category:* 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.
@@ -73,9 +76,11 @@ By default, the editor automatically inserts matching pairs
for braces, brackets
If, for some reason, this feature is disabled, you can enable it by selecting:
-[horizontal]
-*Windows*(TM)/*Linux*:: Tools > Options > Editor > Code Completion
-*macOS*(TM):: NetBeans > Preferences... > Editor > Code Completion
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |Tools > Options > Editor > Code Completion
+|*macOS*(TM) |NetBeans > Preferences... > Editor > Code Completion
+|===
then in the *Language: All Languages* pane select the *Insert Closing Brackets
Automatically* checkbox.
@@ -85,9 +90,11 @@ NOTE: Do not take any notice of the indicated error, because
it does not propose
To customize the highlight colors, select:
-[horizontal]
-*Windows*(TM)/*Linux*:: Tools > Options > Fonts & Colors > Highlighting
-*macOS*(TM):: NetBeans > Preferences... > Fonts & Colors > Highlighting
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |Tools > Options > Fonts & Colors > Highlighting
+|*macOS*(TM) |NetBeans > Preferences... > Fonts & Colors > Highlighting
+|===
//==============================================================================
@@ -103,11 +110,13 @@ More options for collapsing and expanding code blocks can
be found by selecting
To customize the code folding options select:
-[horizontal]
-*Windows*(TM)/*Linux*:: Tools > Options > Editor > Folding
-*macOS*(TM):: NetBeans > Preferences... > Editor > Folding
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |Tools > Options > Editor > Folding
+|*macOS*(TM) |NetBeans > Preferences... > Editor > Folding
+|===
-then select *Language : Java*. There you will find various options.
+then select *Language: Java*. There you will find various options.
//==============================================================================
@@ -115,13 +124,15 @@ then select *Language : Java*. There you will find
various options.
To customize keyboard shortcuts, select:
-[horizontal]
-*Windows*(TM)/*Linux*:: Tools > Options > Keymap
-*macOS*(TM):: NetBeans > Preferences... > Keymap
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |Tools > Options > Keymap
+|*macOS*(TM) |NetBeans > Preferences... > Keymap
+|===
then select *Manage Profiles...* . Select the profile you want to use as a
base for your new profile and click *Duplicate*, rename your profile and click
*OK*, then *Close*.
-Ensure that your new profile is selected, *Profile: <myNewProfileName>* and
then you can modify the shortcuts you need.
+Ensure that your new profile is selected, *Profile: myNewProfileName* and then
you can modify the shortcuts you need.
To edit a shortcut, double-click in the *Shortcut* field or, click the
ellipsis button ( `...` ) and select *Edit...* As you press a sequence of keys,
the syntax for them is added. If you want to add special keys, such as: `Tab`
, `Escape` or, `Enter` etc., click the ellipsis button ( `...` ) again and
select the key from the pop-up window. When you have finished editing your
shortcuts, click *OK* in the *Keymap* window.
@@ -145,9 +156,11 @@ To invoke code completion press `Ctrl-Space` or, choose
*Source > Complete Code
To customize the code completion settings, select:
-[horizontal]
-*Windows* (TM):: Tools > Options > Editor > Code Completion
-*macOS* (TM):: NetBeans > Preferences... > Editor > Code Completion
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows* (TM) |Tools > Options > Editor > Code Completion
+|*macOS* (TM) |NetBeans > Preferences... > Editor > Code Completion
+|===
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 *Language: All
Languages*, select the *Auto Popup Completion Window* checkbox to invoke code
completion automatically when you type certain characters. The default
character for *Language: Java* is " `.` ", but you can add your own characters.
@@ -157,9 +170,11 @@ When the *Auto Popup Completion Window* checkbox is not
selected, you need to pr
Instead of using `Ctrl-Space` 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:
-[horizontal]
-*Windows*(TM)/*Linux*:: `Ctrl-K`
-*macOS*(TM):: `Command-K`
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |`Ctrl-K`
+|*macOS*(TM) |`Command-K`
+|===
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.
@@ -225,9 +240,11 @@ For example, when you select a method from the code
completion window which has
You can invoke the tooltips with method parameters by pressing:
-[horizontal]
-*Windows*(TM)/*Linux*:: `Ctrl-P`
-*macOS*(TM):: `Command-P`
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |`Ctrl-P`
+|*macOS*(TM) |`Command-P`
+|===
or, selecting *Source > Show Method Parameters* from the menu bar at any time.
@@ -255,9 +272,11 @@ image::images/subcompletion.png[]
To implement this feature, select:
-[horizontal]
-*Windows*(TM)/*Linux*:: Tools > Options > Editor > Code Completion
-*macOS*(TM):: NetBeans > Preferences... > Editor > Code Completion
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |Tools > Options > Editor > Code Completion
+|*macOS*(TM) |NetBeans > Preferences... > Editor > Code Completion
+|===
then select in the *Language: Java* pane, the *Subword completion* checkbox.
@@ -282,9 +301,11 @@ image::images/static.png[]
If you would like static import statements to be added automatically, select:
-[horizontal]
-*Windows*(TM)/*Linux*:: Tools > Options > Editor > Formatting
-*macOS*(TM):: NetBeans > Preferences... > Editor > Formatting
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |Tools > Options > Editor > Formatting
+|*macOS*(TM) |NetBeans > Preferences... > Editor > Formatting
+|===
then from the *Language: Java*, *Category: Imports* pane select the *Prefer
Static Imports* checkbox.
@@ -298,9 +319,11 @@ image::images/exclude2-small.png[]
You can add or modify your exclusion rules either when "Configure excludes" is
selected from the code completion list or, by selecting:
-[horizontal]
-*Windows*(TM)/*Linux*:: Tools > Options > Editor > Code Completion
-*macOS*(TM):: NetBeans > Preferences... > Editor > Code Completion
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |Tools > Options > Editor > Code Completion
+|*macOS*(TM) |NetBeans > Preferences... > Editor > Code Completion
+|===
then in the *Language: Java* pane, make your changes to the
*Packages/classes:* list.
@@ -314,7 +337,7 @@ When you are using the Java Persistence Annotation
specification (JPA), you can
image::images/jpacompletion.png[]
-In the code completion window, icons are used to distinguish different members
of the Java language. See <<appendixa,Appendix A: Icons in the Code Completion
Window>> at the end of this document to see the meanings of these icons.
+In the code completion window, icons are used to distinguish different members
of the Java language. See <<Appendix A: Icons in the Code Completion Window>>
at the end of this document to see the meanings of these icons.
//======================================================== Code Completion
(End)
@@ -330,17 +353,21 @@ When a non-imported class is found, the
image:images/bulberror1.png[] error mark
While you are typing, press:
-[horizontal]
-*Windows*(TM)/*Linux*:: `Ctrl-Shift-I`
-*macOS*(TM):: `Command-Shift-I`
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |`Ctrl-Shift-I`
+|*macOS*(TM) |`Command-Shift-I`
+|===
or, choose *Source > Fix Imports* from the menu bar or, right-click and choose
*Source > Fix Imports*, to add all missing import statements and, remove all
unused import statements at once.
To add an import only for the type at which the cursor is located, press:
-[horizontal]
-*Windows*(TM)/*Linux*:: `Alt-Shift-I`
-*macOS*(TM):: `Ctrl-Shift-I`
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |`Alt-Shift-I`
+|*macOS*(TM) |`Ctrl-Shift-I`
+|===
image::images/imports2.png[]
@@ -358,9 +385,11 @@ To quickly see if your code contains unused or missing
imports, watch the error
You can specify that, whenever you save a file, all the unused imports should
automatically be removed, select:
-[horizontal]
-*Windows*(TM)/*Linux*:: Select Tools > Options > Editor > On Save
-*macOS*(TM):: NetBeans > Preferences... > Editor > On Save
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |Select Tools > Options > Editor > On Save
+|*macOS*(TM) |NetBeans > Preferences... > Editor > On Save
+|===
then for *Language: Java*, select the *Remove Unused Imports* checkbox.
@@ -378,9 +407,11 @@ When working in the Java editor, you can generate pieces
of code in one of two w
In the editor, you can automatically generate: various constructs, whole
methods, override and delegate methods, add properties and more. To invoke code
generation, press:
-[horizontal]
-*Windows*(TM)/*Linux*:: `Alt-Insert`
-*macOS*(TM):: `Ctrl-I`
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* | `Alt-Insert`
+|*macOS*(TM) |`Ctrl-I`
+|===
or, choose *Source > Insert Code...* from the menu bar or, right-click and
select *Insert Code...* anywhere in the editor to insert a construct from the
Code Generation box. The suggested list is adjusted to the current context.
@@ -423,9 +454,12 @@ image::images/livetemplate.png[]
You can use code templates by selecting one from the code completion window or,
by typing its abbreviation, found by selecting:
-[horizontal]
-*Windows*(TM)/*Linux*:: Tools > Options > Editor > Code Templates
-*macOS*(TM):: NetBeans > Preferences... > Editor > Code Templates
+
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |Tools > Options > Editor > Code Templates
+|*macOS*(TM) |NetBeans > Preferences... > Editor > Code Templates
+|===
and then *Language: Java* in the *Code Templates* pane.
@@ -437,9 +471,11 @@ The template can be expanded by pressing the default
expansion key `Tab`. In th
To add or edit code templates, select:
-[horizontal]
-*Windows*(TM)/*Linux*:: Tools > Options > Editor > Code Templates
-*macOS*(TM):: NetBeans > Preferences... > Editor > Code Templates
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |Tools > Options > Editor > Code Templates
+|*macOS*(TM) |NetBeans > Preferences... > Editor > Code Templates
+|===
then select *Language: Java*. In the *Templates:* window you will be pesented
with a list of abbreviations each with an expanded text and description.
@@ -463,9 +499,11 @@ Use the following features to facilitate working with
Javadoc for your code.
To display Javadoc, place the cursor on an element in your code and, press:
-[horizontal]
-*Windows*(TM)/*Linux*:: `Ctrl-Shift-Space`
-*macOS*(TM):: `Command-Shift-\`
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* | `Ctrl-Shift-Space`
+|*macOS*(TM) |`Command-Shift-\`
+|===
or choose *Source > Show Documentation* from the menu bar. The Javadoc for
this element is displayed in a popup window.
@@ -493,9 +531,11 @@ image::images/javadoc2.png[]
If you do not want to see the hints related to Javadoc, select:
-[horizontal]
-*Windows*(TM)/*Linux*:: Tools > Options > Editor > Hints
-*macOS*(TM):: NetBeans > Preferences... > Editor > Hints
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |Tools > Options > Editor > Hints
+|*macOS*(TM) |NetBeans > Preferences... > Editor > Hints
+|===
and clear the *JavaDoc* checkbox in the list of hints that are displayed.
@@ -553,9 +593,11 @@ For the most common coding mistakes, you can see hints in
the left-hand margin o
Hints are displayed automatically by default. However, if you want to view all
hints, choose *Source > Fix Code* from the menu bar or, press:
-[horizontal]
-*Windows*(TM)/*Linux*:: `Alt-Enter`
-*macOS*(TM):: `Ctrl-Enter`
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |`Alt-Enter`
+|*macOS*(TM) |`Ctrl-Enter`
+|===
For example, try typing `myBoolean=true`. The editor detects that this
variable is not defined. Click the hint icon image:images/bulberror1.png[] and,
see the editor suggests that you create a field, a method parameter, or a local
variable.
@@ -569,9 +611,12 @@ You can easily surround pieces of your code with various
statements, such as `f
Select a block in your code that you want to surround with a statement and
click the bulb icon image:images/bulb.png[] in the left-hand margin or, choose
*Source > Fix Code* from the menu bar or, press:
-[horizontal]
-*Windows*(TM)/*Linux*:: `Alt-Enter`
-*macOS*(TM):: `Ctrl-Enter`
+
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |`Alt-Enter`
+|*macOS*(TM) |`Ctrl-Enter`
+|===
The editor displays a pop-up list of suggestions from which you can select the
statement you need.
@@ -583,9 +628,11 @@ image::images/surroundwith.png[]
You might want to limit the number of categories for which hints are
displayed. To do this, select:
-[horizontal]
-*Windows*(TM)/*Linux*:: Tools > Options > Editor > Hints
-*macOS*(TM):: NetBeans > Preferences... > Editor > Hints
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |Tools > Options > Editor > Hints
+|*macOS*(TM) |NetBeans > Preferences... > Editor > Hints
+|===
then select *Language: Java* 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.
@@ -613,15 +660,19 @@ The IDE provides several preset coloring schemes, which
are called profiles. You
To customize semantic coloring settings for the Java editor, select:
-[horizontal]
-*Windows*(TM)/*Linux*:: Tools > Options > Fonts & Colors
-*macOS*(TM):: NetBeans > Preferences... > Fonts & Colors
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |Tools > Options > Fonts & Colors
+|*macOS*(TM) |NetBeans > Preferences... > Fonts & Colors
+|===
It is preferable to save custom colors in new profiles, to do this use the
following method:
* In the *Fonts & Colors* window, select a suitable profile from the
*Profile:* drop-down list as your starting point.
* Click *Duplicate* next to the *Profile:* and, enter a name for your new
profile and click *OK*.
-* Ensure that your new profile is currently selected *Profile:
<myNewColorProfile>* and select *Language: Java*.
+
+* Ensure that your new profile is currently selected *Profile:
myNewColorProfile* and select *Language: Java*.
+
* Select a *Category:* and then change the *Font:*, *Foreground:*,
*Background:*, and *Effects:* for this category. Use the *Preview:* window to
view the results and when satisfied click *OK*.
NOTE: All NetBeans IDE settings and profiles are stored in the _NetBeans
userdir_. When upgrading NetBeans, you can export your old settings and import
them into the new version.
@@ -632,9 +683,11 @@ NOTE: All NetBeans IDE settings and profiles are stored in
the _NetBeans userdir
To export IDE settings, select:
-[horizontal]
-*Windows*(TM)/*Linux*:: Tools > Options
-*macOS*(TM):: NetBeans > Preferences...
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |Tools > Options
+|*macOS*(TM) |NetBeans > Preferences...
+|===
and click *Export*, specify the location and name of the ZIP file that will be
created. Select the settings that you want to export and click *OK*.
@@ -666,7 +719,7 @@ image::images/highlightelement.png[]
The IDE highlights usages of the same element, matching braces, method exit
points, and exception throwing points.
-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 <<stripes,Error Stripes>>). Click the error stripe to quickly navigate to
the desired usage location.
+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: <<Error Stripes>>. Click the error stripe to quickly navigate to the
desired usage location.
If you decide to rename all the highlighted instances, use the Instant Rename
command (Ctrl-R or choose Refactor > Rename).
@@ -696,17 +749,21 @@ Select: a class, method or field in your code and then
choose your desired actio
*Go to declaration*, press:
-[horizontal]
-*Windows*(TM)/*Linux*:: `Ctrl-B`
-*macOS*(TM):: `Ctrl-Shift-G`
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |`Ctrl-B`
+|*macOS*(TM) |`Ctrl-Shift-G`
+|===
or, select *Navigate > Go to Declaration* from the menu bar or, right-click
and select *Navigate > Go To Declaration* 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.
*Go to source*, press:
-[horizontal]
-*Windows*(TM)/*Linux*:: `Ctrl-Shift-B`
-*macOS*(TM):: `Command-Shift-B`
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |`Ctrl-Shift-B`
+|*macOS*(TM) |`Command-Shift-B`
+|===
or, select *Navigate > Go to Source* from the menu bar or, right-click and
select *Navigate > Go to Source* 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".
@@ -716,9 +773,11 @@ If you know the name of the type (class, interface,
annotation or enum), file, o
*Go to type*, press:
-[horizontal]
-*Windows*(TM)/*Linux*:: `Ctrl-O`
-*macOS*(TM):: `Command-O`
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |`Ctrl-O`
+|*macOS*(TM) |`Command-O`
+|===
or, select *Navigate > Go to Type...* from the menu bar.
@@ -726,17 +785,21 @@ image::images/gototype.png[]
*Go to file*, press:
-[horizontal]
-*Windows*(TM)/*Linux*:: `Alt-Shift-O`
-*macOS*(TM):: `Ctrl-Shift-O`
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |`Alt-Shift-O`
+|*macOS*(TM) |`Ctrl-Shift-O`
+|===
or, select *Navigate > Go to File...* from the menu bar.
*Go to symbol*, press:
-[horizontal]
-*Windows*(TM)/*Linux*:: `Ctrl-Alt-Shift-O`
-*macOS*(TM):: `Ctrl-Shift-Command-O`
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |`Ctrl-Alt-Shift-O`
+|*macOS*(TM) |`Ctrl-Shift-Command-O`
+|===
or, select *Navigate > Go to Symbol...* from the menu bar.
@@ -770,17 +833,21 @@ There are several features that allow you to switch
between open files:
To go to a previously edited file, press:
-[horizontal]
-*Windows*(TM)/*Linux*:: `Alt-Left`
-*macOS*(TM):: `Ctrl-Left`
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |`Alt-Left`
+|*macOS*(TM) |`Ctrl-Left`
+|===
or, select *Navigate > Back*, from the menu bar.
To move forward press:
-[horizontal]
-*Windows*(TM)/*Linux*:: `Alt-Right`
-*macOS*(TM):: `Ctrl-Right`
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |`Alt-Right`
+|*macOS*(TM) |`Ctrl-Right`
+|===
or, select *Navigate > Forward*, from the menu bar.
@@ -804,9 +871,11 @@ image::images/shift-f4.png[]
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:
-[horizontal]
-*Windows*(TM)/*Linux*:: `Ctrl-Shift-M`
-*macOS*(TM):: `Command-Shift-M`
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |`Ctrl-Shift-M`
+|*macOS*(TM) |`Command-Shift-M`
+|===
or, select *Navigate > Toggle Bookmark* from the menu bar or, right-click the
left margin and choose *Bookmark > Toggle Bookmark*.
@@ -822,15 +891,19 @@ To clear all document bookmarks, you need to customize
the Toolbar, to do this s
To go to the next bookmark, press:
-[horizontal]
-*Windows*(TM)/*Linux*:: `Ctrl-Shift-Period`
-*macOS*(TM):: `Command-Shift-Period`
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |`Ctrl-Shift-Period`
+|*macOS*(TM) |`Command-Shift-Period`
+|===
To go to the previous bookmark, press:
-[horizontal]
-*Windows*(TM)/*Linux*:: `Ctrl-Shift-Comma`
-*macOS*(TM):: `Command-Shift-Comma`
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |`Ctrl-Shift-Comma`
+|*macOS*(TM) |`Command-Shift-Comma`
+|===
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.
@@ -840,7 +913,7 @@ You can move forward or backward by repeatedly releasing
and pressing the `Perio
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.
-If you select the *<Bookmarks>* item in the pop-up list, as shown in the
figure above or, when you select *Window > IDE Tools > Bookmarks* from the menu
bar, the *Bookmarks* window opens.
+If you select the *Bookmarks* item in the pop-up list, as shown in the figure
above or, when you select *Window > IDE Tools > Bookmarks* from the menu bar,
the *Bookmarks* window opens.
image::images/bookmark3-small.png[]
@@ -858,10 +931,12 @@ image::images/navigatorwindow.png[]
To open the Navigator window, choose *Window > Navigator* or, press:
-[horizontal]
-*Windows*(TM)/*Linux*:: `Ctrl-7`
+[grid="none",frame="none",width="75%",cols="1,4"]
+|===
+|*Windows*(TM)/*Linux* |`Ctrl-7`
+|===
-NOTE: There is no keyboard shortcut set for *macOS*(TM). See *Customizing
Keyboard Shortcuts* to learn how to set missing shortcuts.
+NOTE: There is no keyboard shortcut set for |*macOS*(TM). See *Customizing
Keyboard Shortcuts* to learn how to set missing shortcuts.
In the Navigator window, you can do the following:
@@ -871,7 +946,6 @@ In the Navigator window, you can do the following:
* Apply filters to the elements displayed in the *Navigator*, select the
buttons at the bottom.
* Type the name of the element that you want to find, the *Navigator* window
must be active.
-
//============================================================= Navigation
(End)
//=========================================================== Appendix A
(Start)
@@ -880,7 +954,8 @@ In the Navigator window, you can do the following:
[cols="1,3,1,3"]
|===
-|Icon |Meaning |Variants (if any) | Meaning
+
+|Icon |Meaning |Variants | Meaning
|image:images/annotation_type.png[] |Annotation type | |
---------------------------------------------------------------------
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