Special Editor Keys

Bookmarks (define): ctrl+shift+0...9
Set a bookmark in a source module by clicking anywhere on the line and pressing ctrl+shift+number (0 to 9). A bookmark will appear in the margin. Bookmarks are kept separately for each source module.

Bookmarks (go to): ctrl+0...9
Press ctrl+ a number from 0 to 9 to go to the bookmark previously defined in the source code.

BreakPoints: F6
To define a breakpoint, the emulator must be active AND the project must have been loaded into the emulator. The loaded project must match the compiled object for the project.

Place the cursor in a line and press F6 to set/unset a breakpoint.

Click with the mouse in the margin to set/unset a breakpoint.

Right mouse click in the margin to enable/disable an existing breakpoint.

The yellow X indicates a disabled breakpoint.

View breakpoints from the main Debug2 window. Use menu: debugView \ Breakpoints to see all breakpoints and their status (active/inactive). The type of breakpoint (RPL/ASM) is determined automatically when you set them in source code or manually in the Breakpoint box for breakpoints outside of the source code.

Definition look-up: ctrl+mouse_click
Ctrl+mouse_click on a code reference in your source (such as an Inform box's external name. The editor will open in that source file. Press ctrl+U to return to the original starting file.

Dynamic Verb Completion of RPL names: ctrl+space
Start typing an RPL name then press ctrl+space to see a list of similar RPL names. Scroll to the desired name and press ENTER to have the name added to the source code. In the list, ROMPTR and FLASHPTR entries are marked with the word ROM or FLASH.  If one of these items is selected the ROMPTR  or FLASHPTR operator will be put into the code ahead of the verb.  The special characters ~ and ^ which begin a ROMPTR or FLASHPTR entry are not typed or recognized by the system. 

Indent Code: Select more than 1 line + TAB
The selected lines will move right one tab width. shift+TAB will move the lines left. When the left margin is reached, further shift+TABs will remove any remaining indents and align the selected code.

Parenthesis and bracket search: (ctrl+shift+B)
Place the cursor next to a ( ) { } {{ }} :: ; [ or ] This command finds its match (either direction.

Stack Pictures
Place the cursor in an RPL verb (or at either end) and press ctrl+J.  A stack description for the RPL word will be shown.  Multiple lines are used when the verb can take different stack sets.

Template Completion (insertion of code): shift+space
Type a model name (such as ::) then press shift+space to have the name expanded to code. See Editor menu: Edit \ Edit_Source_Templates for the models.

Unindent Code: Select more than 1 line + shift+TAB
The selected lines will move left one tab width. When the left margin is reached, further shift+TABs will remove any remaining indents and align the selected code.

Up (Return from Definitions): ctrl+U
See "Definition look-up" above.

Vertical Block Selection: alt+mouse_drag
A vertical block of text may be selected by holding down the ALT key and dragging over the text with the mouse. The selected block may then be cut, copied and pasted. When pasting, the vertical block is inserted into multiple lines of text so that the block's original vertical dimensions remain the same after pasting.

Window Keys:
The primary windows have keys to open/close them.  These keys include:

These keys can also be used to quickly bring a window to the top.  For example, if the Editor window (ctrl+E) is open, quickly pressing ctrl+E twice will close the window and then reopen it.  When it reopens it will now be on top!

Back ] Next ]