The Editor
Some of the editor's major functions are:
- Ctrl-Space to request completion explicitely (works in all files).
The default completion engine will simply look for all identifiers in the
current file and uses this as completion dictionary.
If the editor contains a .java file, the parser-backed completion engine will be used.
This completion engine is type sensitive and knows your libraries (if they have been added
to your workspace). Note that the HelpAgent displays JavaDoc for each selection
made to the completion popup. Move to a valid
classname or methodname (known in the SourceIndex) and press Ctrl-Space to force the HelpAgent to display
JavaDoc (if available).
If you are editing .html files, the html completion engine will be used. It knows
common tag names and their attributes. If you are editing content (i.e. outside a tag)
within an html file, the
default completion engine will be used. Note that the HelpAgent displays
help for the common tags: Move the cursor on a tag name (e.g., "table [..]")
and press Ctrl-Space.
Note that AnyJ assumes all html tags and attributes to be lowercase. At the time an
uppercase tag is detected (enforce it by requesting completion inside an uppercase tag), AnyJ switches to
uppercase completion on tags & attributes. Switch back by enforcing AnyJ to detect a lowercase
tag.
- F1 to find the word at the cursor in the global identifier index
- Ctrl-S to save the current file
- Alt-G Alt-D to go to the definition of the identifier at the cursor (does not work
on locals)
- Alt-B Alt-F to find the current file in the FileTree
(Note: If there
is a classname at the current cursor position, this class is opened in the FileTree)
- Alt-B Alt-C to find the current file in the ClassTree
(Note: If there
is a classname at the current cursor position, this class is opened in the ClassTree)
- F8 to save+compile the currently edited file
- F4/Shift F4 to move to the next/previous error
- Ctrl-M to comment/uncomment the currently selected area
- Ctrl-E/Double Click on brace - match braces
- Ctrl-W opens an editor-window list
- Ctrl-B moves to the last edited position
- Ctrl-F to open the editor-local find panel
- F3 to find next
- Ctrl-D to open the finder
- Alt-Up Arrow to cycle open editor windows
Note: All shortcuts given here can be changed by configuring AnyJ, so these shortcuts are
predefined in AnyJ.
It is important to understand the selection logic of AnyJ.
Example:
If you perform an action which needs a directory as an argument (such as Ctrl-D to
search a directory), AnyJ performs the following to determine the directory:
- if nothing is selected, the word at the current cursor
position is taken as the selection.
- if this word is a valid classname, AnyJ tries to locate the
package + directory of that class. If successful, this directory is taken as the
argument to perform the search on.
- if the above fails, AnyJ takes the directory of the current file as an
argument to perform the search.
Therefore moving the cursor to a blank area ensures that the directory of the
currently edited file is passed as the initial directory to search in.
This logic applies to all actions performed from within the editor.
Note that most of the actions are available in the PopupMenu.