Keybindings
Prev | Chapter 3. Usage | Next

## Keybindings

For all listed actions you can define your own keybindings. Open the preferences dialog, select the desired action and click on change. In the opening dialog you can press any key combination you want and it will be saved when you press OK. You can define only one key combination for one action.

Some of the default key combinations cannot be changed, e.g. menu_new or menu_open. These are set by GTK and should be kept, but you can still add other key combinations for these actions. For example to execute menu_open by default Ctrl-O is set, but you can also define Alt-O, so that the file open dialog is shown by pressing either Ctrl-O or Alt-O.

The following table lists all available actions for keyboard shortcuts.

Table 3.4. Keybindings action table

Action | Description
--- | ---
Menu items
New | Creates a new file.
Open | Opens a file.
Save | Saves the current file.
Save all | Saves all open files.
Close all | Closes all open files.
Close | Closes the current file.
Reload file | Reloads the current file. All unsaved changes will be lost.
Print | Prints the current file.
Undo | Undoes the last action.
Redo | Redoes the last action.
Select all | Makes a selection of all text in the current document.
Preferences | Opens preferences dialog.
Find Next | Finds next result.
Find Previous | Finds previous result.
Replace | Opens the replace dialog.
Go to line | Opens the Go To Line dialog.
Show Colour Chooser | Opens the colour chooser dialog.
Fullscreen | Switches to fullscreen mode.
Toggle Messages Window | Toggles the message window (status and compiler messages) on and off.
Toggle Sidebar | Shows or hides the sidebar.
Zoom In | Zooms in the text
Zoom Out | Zooms out the text
Replace tabs by space | Replaces all tabs with the right amount of spaces.
Fold all | Folds all contractible code blocks.
Unfold all | Unfolds all contracted code blocks.
Build options
Compile | Compiles the current file.
Build | Builds (compiles if necessary and links) the current file.
Build with "make" | Builds the current file with the Make tool.
Build with "make" (custom target) | Builds the current file with the Make tool and a given target.
Run | Executes the current file in a terminal emulation.
Run (alternative command) | Executes the current file in a terminal emulation.
Build options | Opens the build options dialog.
Miscellaneous
Reload symbol list | Reloads the tag/symbol list.
Switch to Editor | Switches to editor widget.
Switch to Scribble | Switches to scribble widget.
Switch to VTE | Switches to VTE widget.
Switch to left document | Switches to the previous open document.
Switch to right document | Switches to the next open document.
Editing operations
Duplicate line or selection | Duplicates the current line or selection.
Comment line | Comments current line or selection.
Complete word | Shows auto completion list.
Show calltip | Shows call tips for the current function or method.
Show macro list | Shows a list of available macros and variables in the workspace.
Suppress auto completion | If you type something like if or for and press this key, it will not be auto completed.
Find Usage | Finds all occurrences of the current word under the mouse pointer and displays them in the messages window.
Go to tag definition | Jump to the defintion of the current function under the mouse pointer. If the defintion cannot be found(e.g. the file where it is, is not open) Geany will beep and do nothing.
Go to tag declaration | Jump to the declaration of the current function under the mouse pointer. If the defintion cannot be found(e.g. the file where it is, is not open) Geany will beep and do nothing.

Prev | Up | Next
Printing support | Home | Filetype definition files