[up]

Code Editor

Index

General Introduction

Notice that some aspects of the editor can be customized. Especially the keyboard shortcuts are defined in a file called "keyboard.rc" which is loaded at startup time. If you don't like the default keyboard settings as described below, feel free to place your own "keyboard.rc" file into your ST/X startup directory.

Menu Functions

Most menu functions operate on the current text selection. The menu is hierarchical, with less frequently used operations to be found in submenus named "More" or "Other".

Shortkey Commands

Shortkey commands are initialted by keeping either "Ctrl" and/or "Cmd" (also named "Alt" or "Meta" on some keyboards). On the Mac, using the XWindow version of ST/X, the "Apple-Cmd" key is reserved for Window manager operations, and not usable in ST/X, unless you have installed a custom keybord modifier map. Here, the "Alt" key located next to the Cmd key is used (which may be annoying at times).

Shortkey commands are also described in the introductionary text, "Editing Text", so the following is only a reminder about the most common functions.

Shortkey commands are roughly grouped into

Cursor Movement Keys

These are usually CTRL-key combinations.

Selection Keys

These are usually ALT-key combinations.

Operation Keys

Syntax Coloring

The code view performs syntax coloring as you type. A number of different coloring styles are availabe and can be customized via the Launcher's settings dialog.

Code Completion

If enabled in the Launcher's settings dialog, the editor offers code completions, either on the fly, "as you type", or initiated by a key ("Tab" or "Ctrl").

When "as you type" completion is enabled, a floating window presents plausible completions. This list is updated as you type more or delete characters by backspacing. The window is closed by pressing "Esc".

To select a completion, first navigate the list using the "CursorUp" or "CursorDown" key, then press "Return".
Some users find it irritating that the cursor- and return keys are intercepted this way. Those may check the "Shift/Control to Navigate in Completion" checkbox in the Launcher's settings. If set, reguler key presses are handled as usual and to navigate the completion list, press "Shift" (or "Ctrl")-"CursorKey" and "Shift-Return".

The setting also includes check boxes named "Tab" or "Ctrl"-completion. If checked, the completion list appears when that key is pressed.

Snippet Insertion (Abbreviations)

Snippets are little code fragments which appear often in source code. A predefined (but customizable) list of abbreviations is defined in the Workspace class. The snippet to be inserted is determined by the character(s) before the cursor.

If a code completion list is presented, any applyable snippet is also appended to this list (and can thus be easily selected via CursorUp-Return.

Customization


[stx logo] Copyright © 1995-2013 Claus Gittinger Development & Consulting, all rights reserved

<cg@exept.de>

Doc $Revision: 1.8 $ $Date: 2016/11/04 00:19:00 $