In the explanations that follow, a word means a sequence of characters delimited by the beginning of the text, the end of the text, a punctuation mark, or one or more spaces, tabs, or line breaks.
To display a help screen of all keystroke commands:
![]() |
Note: Note that the arrow keys have a different meaning in the context of the editor than in other G2 contexts.
Deleting Text
Note: Note that the Control + g command has a different meaning in the context of the editor than in other G2 contexts.
Inserting Tabs and Line Breaks
You enter a Tab character by pressing the Tab key.
| To insert a... | Use this command in the standard editor... | Use this command in the scrolling editor... |
|---|---|---|
|
Line break
|
Control + j or Linefeed key
|
Return key
|
Controlling Tab Settings
When you enter a tab in the editor, G2 inserts spaces; G2 does not use preset tab stops.
To control the number of spaces that G2 inserts when using a tab:
Edit the Number-of-spaces-to-insert-on-a-tab attribute in the Editor Parameters system table.
Inserting Prompts by using the Keyboard
You can insert text directly from the natural language prompts at the bottom of the workspace by using a keystroke.
| To insert... | Use this command... |
|---|---|
|
The first prompt
|
Control + Space Bar
|
|
The last prompt
|
Control + Shift + Space Bar
|