This is an old revision of the document!
Keyboard shortcuts
Each of Geany's drop-down menus ('File', 'Edit','Search. 'View', … ) offers some keyboard shortcuts ('File/New' = Ctrl+N, …; 'Edit/Undo' = Ctrl+Z, ..).
The following table lists all the built-in shortcuts.
You can make more! For how to do this, see “Configurable keybindings” in the Geany on-line manual http://www.geany.org/manual/#configurable-keybindings.
Built-in shortcuts
Shortcut | Result | Description |
---|---|---|
F1 (C) | Help | Opens the manual. |
F2 | Switch to Editor | Switches to editor widget. Also reshows the document statistics line (after a short timeout). |
F4 | Switch to VTE | Switches to VTE widget. |
F5 | Run | Executes the current file in a terminal emulation. |
F6 | Switch to Scribble | Switches to scribble widget. |
F7 | Switch to Search Bar | Switches to the search bar in the toolbar (if visible). |
F8 | Compile | Compiles the current file. |
Shift-F8 | Make object | Compiles the current file with the Make tool. |
F9 | Build | Builds (compiles if necessary and links) the current file. |
Shift-F9 | Make all | Builds the current file with the Make tool. |
Ctrl-Shift-F9 | Make custom target | Builds the current file with the Make tool and a given target. |
F11 (C) | Fullscreen | Switches to fullscreen mode. |
| ||
End | Go to End of Line | Move the caret to the end of the line. |
Home | Go to Start of Line | Move the caret to the start of the line. Behaves differently if smart_home_key is set. |
Tab | Word part completion | When the autocompletion list is visible, complete the currently selected item up to the next word part. |
Tab | Complete snippet | If you type a construct like if or for and press this key, it will be completed with a matching template. |
| ||
Alt-Down | Scroll down by one line | Scrolls the view. |
Alt-End | Go to End of Display Line | Move the caret to the end of the display line. If the line is not wrapped, it behaves like Go to End of Line. |
Alt-Home | Go to Start of Display Line | Move the caret to the start of the display line. This is useful when you use line wrapping and want to jump to the start of the wrapped, virtual line, not the real start of the whole line. If the line is not wrapped, it behaves like Go to Start of Line. |
Alt-Left (C) | Navigate back a location | Switches to the previous location in the navigation history. See the section called Code navigation history. |
Alt-PageDown | Move line(s) down | Move the current line or selected lines down by one line. |
Alt-PageUp | Move line(s) up | Move the current line or selected lines up by one line. |
Alt-Right (C) | Navigate forward a location | Switches to the next location in the navigation history. See the section called Code Navigation History. |
Alt-Shift-L | Select current line(s) | Selects the current line under the cursor (and any partially selected lines). |
Alt-Shift-P | Select current paragraph | Selects the current paragraph under the cursor which is defined by two empty lines around it. |
Alt-Shift-W | Select current word | Selects the current word under the cursor. |
Alt-Up | Scroll up by one line | Scrolls the view. |
| ||
Shift-Alt-D | Insert date | Inserts a customisable date. |
| ||
Ctrl-A (C) | Select all | Makes a selection of all text in the current document. |
Ctrl-B | Goto matching brace | If the cursor is ahead or behind a brace, then it is moved to the brace which belongs to the current one. If this keyboard shortcut is pressed again, the cursor is moved back to the first brace. |
Ctrl-C (C) | Copy | Copy the current selection to the clipboard. |
Ctrl-D | Duplicate line or selection | Duplicates the current line or selection. |
Ctrl-E | Toggle line commentation | Comments a line if it is not commented or removes a comment if the line is commented. |
Ctrl-F (C) | Find | Opens the Find dialog. |
Ctrl-G | Find Next | Finds next result. |
Ctrl-H (C) | Replace | Opens the Replace dialog. |
Ctrl-I | Increase indent | Indents the current line or selection by one tab or by spaces in the amount of the tab width setting. |
Ctrl-K | Delete current line(s) | Deletes the current line (and any lines with a selection). |
Ctrl-L | Go to line | Focuses the Go to Line entry (if visible) or shows the Go to line dialog. |
Ctrl-M | Toggle marker | Set a marker on the current line, or clear the marker if there already is one. |
Ctrl-N (C) | New | Creates a new file. |
Ctrl-O (C) | Open | Opens a file. |
Ctrl-P (C) | Prints the current file. | |
Ctrl-Q (C) | Quit | Quits Geany. |
Ctrl-R (C) | Reload file | Reloads the current file. All unsaved changes will be lost. |
Ctrl-S (C) | Save | Saves the current file. |
Ctrl-T | Go to tag definition | Jump to the definition of the current word or selection. See Go to tag definition. |
Ctrl-U | Decrease indent | Removes one tab or the amount of spaces of the tab width setting from the indentation of the current line or selection. |
Ctrl-V (C) | Paste | Paste the clipboard text into the current document. |
Ctrl-W (C) | Close | Closes the current file. |
Ctrl-X (C) | Cut | Cut the current selection to the clipboard. |
Ctrl-Y | Redo | Re-does the last action. |
Ctrl-Z (C) | Undo | Un-does the last action. |
| ||
Ctrl-Alt-P | Preferences | Opens preferences dialog. |
Ctrl-Alt-U | Toggle case of selection | Changes the case of the selection. A lowercase selection will be changed into uppercase and vice versa. If the selection contains lower- and uppercase characters, all will be converted to lowercase. |
| ||
Ctrl-0 | Zoom Reset | Reset any previous zoom on the text. |
Ctrl-1 (2,3) | Send to Custom Command 1 (2,3) | Passes the current selection to a configured external command (available for the first three configured commands, see Sending text through custom commands for details). |
| ||
Ctrl– (C) | Zoom Out | Zooms out the text. |
Ctrl-, | Goto previous marker | Goto the previous marker in the current document. |
Ctrl-. | Goto next marker | Goto the next marker in the current document. |
Ctrl-/ | Go to Previous Word Part | Goto the previous part of the current word. |
Ctrl-\ | Go to Next Word Part | Goto the next part of the current word. |
Ctrl-+ (C) | Zoom In | Zooms in the text. |
| ||
Ctrl-Space | Complete word | Shows the autocompletion list. If already showing tag completion, it shows document word completion instead, even if it is not enabled for automatic completion. Likewise if no tag suggestions are available, it shows document word completion. |
Ctrl-Shift-Space | Show calltip | Shows a calltip for the current function or method. |
| ||
Ctrl-Shift-C | Copy current line(s) | Copies the current line (and any lines with a selection) to the clipboard. |
Ctrl-Shift-D | Find Document Usage | Finds all occurrences of the current word (near the keyboard cursor) or selection in the current document and displays them in the messages window. |
Ctrl-Shift-E | Find Usage | Finds all occurrences of the current word (near the keyboard cursor) or selection in all open documents and displays them in the messages window. |
Ctrl-Shift-F | Find in files | Opens the Find in files dialog. |
Ctrl-Shift-G | Find Previous | Finds previous result. |
Ctrl-Shift-L | Scroll to current line | Scrolls the current line into the centre of the view. The cursor position and or an existing selection will not be changed. |
Ctrl-Shift-M | Mark All | Highlight all matches of the current word/selection in the current document with a colored box. If there's nothing to find, or the cursor is next to an existing match, the highlighted matches will be cleared. |
Ctrl-Shift-O | Open selected file | Opens the selected filename. |
Ctrl-Shift-R | Reload symbol list | Reloads the tag/symbol list. |
Ctrl-Shift-S | Save all | Saves all open files. |
Ctrl-Shift-T | Go to tag declaration | Jump to the declaration of the current word or selection. See Go to tag declaration. |
Ctrl-Shift-W | Close all | Closes all open files. |
Ctrl-Shift-X | Cut current line(s) | Cuts the current line (and any lines with a selection) to the clipboard. |
| ||
Ctrl-PageUp (C) | Switch to left document | Switches to the previous open document. |
Ctrl-Shift-PageUp | Move document left | Changes the current document with the left hand one. |
| ||
Ctrl-PageDown (C) | Switch to right document | Switches to the next open document. |
Ctrl-Shift-PageDown | Move document right | Changes the current document with the right hand one. |
| ||
Ctrl-Return | Show macro list | Shows a list of available macros and variables in the workspace. |
Ctrl-Tab | Switch to last used document | Switches to the previously shown document (if it's still open). Holding Ctrl (or another modifier if the keybinding has been changed) will show a dialog, then repeated presses of the keybinding will switch to the 2nd-last used document, 3rd-last, etc. Also known as Most-Recently-Used documents switching. |
| ||
Ctrl-Shift-Delete | Delete to line end | Deletes from the current caret position to the end of the current line. |