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 | |
menu_new | Creates a new file. |
menu_open | Opens a file. |
menu_save | Saves the current file. |
menu_saveall | Saves all open files. |
menu_closeall | Closes all open files. |
menu_reloadfile | Reloads the current file. All unsaved changes will be lost. |
menu_undo | Undoes the last action. |
menu_redo | Redoes the last action. |
menu_preferences | Opens preferences dialog. |
menu_findnext | Finds next result. |
menu_findprevious | Finds previous result. |
menu_replace | Opens the replace dialog. |
menu_gotoline | Opens the Go To Line dialog. |
menu_opencolorchooser | Opens the colour chooser dialog. |
menu_fullscreen | Switches to fullscreen mode. |
menu_messagewindow | Toggles the message window (status and compiler messages) on and off. |
menu_zoomin | Zooms in the text |
menu_zoomout | Zooms out the text |
menu_replacetabs | Replaces all tabs with the right amount of spaces. |
menu_foldall | Folds all contractible code blocks. |
menu_unfoldall | Unfolds all contracted code blocks. |
Build options | |
build_compile | Compiles the current file. |
build_link | Builds (compiles if necessary and links) the current file. |
build_make | Builds the current file with the Make tool. |
build_makeowntarget | Builds the current file with the Make tool and a given target. |
build_run | Executes the current file in a terminal emulation. |
build_run2 | Executes the current file in a terminal emulation. |
build_options | Opens the build options dialog. |
Miscellaneous | |
reloadtaglist | Reloads the tag/symbol list. |
switch_editor | Switches to editor widget. |
switch_scribble | Switches to scribble widget. |
switch_vte | Switches to VTE widget. |
switch_tableft | Switches to the previous open document. |
switch_tabright | Switches to the next open document. |
toggle_sidebar | Shows or hides the sidebar. |
Editing operations | |
edit_duplicateline | Duplicates the current line. |
edit_commentline | Comments current line or selection. |
edit_autocomplete | Shows auto completion list. |
edit_calltip | Shows call tips for the current function or method. |
edit_macrolist | Shows a list of available macros and variables in the workspace. |
edit_suppresscompletion | If you type something like if or for and press this key, it will not be auto completed. |