On Windows, keyboard shortcuts are generally native Windows like.
Selecting text
The are three ways to select text:
Word completion
<Shift+tab> completes a word if the word already occurs in the loaded file.
Matching parentheses and quotes
Double-clicking close to any of the following language elements causes the Source Editor to mark the code between this item and its matching one:
single quotes | -- ' --
double quotes
| -- " --
|
parentheses
| -- ( --
|
brackets
| -- [ --
|
braces
| -- { --
| |
Copying/moving text
Drag-and-drop copying/moving
You can drag text from one position to another by selecting it with the mouse and then dragging it. If you want to copy text rather than move it, hold down the
Cursor navigation | Keyboard shortcut | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Normal |
Emacs-like
Word forward
|
<SHIFT>
cursor-right
|
<ESC>
f
| Word backward
|
<SHIFT>
cursor-left
|
<ESC>
b
| Beginning of line
|
<CTRL>
cursor-left
|
<CTRL>
a
| End of line
|
<CTRL>
cursor-right
|
<CTRL>
e
| Page down
|
<PageDown>
or
| <SHIFT> cursor-down
<CTRL>
v
| Page up
|
<PageUp>
or
| <SHIFT> cursor-up
<ESC>
v
| Beginning of file
|
<Home>
or
| <CTRL> cursor-up
| Bottom of file
|
<End>
or
| <CTRL> cursor-down
| Start/End cursor text | selection
<CTRL>
<Space>
|
| |
The following table shows the Source Editor's text modification keyboard shortcuts
Keystroke macros
The SNiFF+ Source Editor can remember keystrokes in a macro. The following table shows how to define and execute a macro:
Macro |
Keyboard shortcut
Start macro
|
<CTRL+x> (
| End macro
|
<CTRL+x> )
| Execute macro
|
<CTRL+x>
e
| |