Shortcut Keys

Use shortcut keys to perform common tasks more quickly than with the mouse and menus. The following tables list all of gedit's shortcut keys.

For more on shortcut keys, see the Desktop User Guide.

Shortcuts for tabs:

Shortcut Key Command
Ctrl + Alt + PageUpSwitches to the next tab to the left.
Ctrl + Alt + PageDownSwitches to the next tab to the right.
Ctrl + WClose tab.
Ctrl + Shift + LSave all tabs.
Ctrl + Shift + WClose all tabs.
Alt + nJump to nth tab.

Shortcuts for working with files:

Shortcut Key Command
Ctrl + NCreate a new document.
Ctrl + OOpen a document.
Ctrl + LOpen a location.
Ctrl + SSave the current document to disk.
Ctrl + Shift + SSave the current document with a new filename.
Ctrl + PPrint the current document.
Ctrl + Shift + PPrint preview.
Ctrl + WClose the current document.
Ctrl + QQuit Gedit.

Shortcuts for editing documents:

Shortcut Key Command
Ctrl + ZUndo the last action.
Ctrl + Shift + ZRedo the last undone action .
Ctrl + XCut the selected text or region and place it on the clipboard.
Ctrl + CCopy the selected text or region onto the clipboard.
Ctrl + VPaste the contents of the clipboard.
Ctrl + ASelect all.
Ctrl + DDelete current line.

Shortcuts for showing and hiding panes:

Shortcut Key Command
F9Show/hide the side pane.
Ctrl + F9Show/hide the bottom pane.

Shortcuts for searching:

Shortcut Key Command
Ctrl + FFind a string.
Ctrl + GFind the next instance of the string.
Ctrl + Shift + GFind the previous instance of the string.
Ctrl + KInteractive search.
Ctrl + HSearch and replace.
Ctrl + Shift + KClear highlight.
Ctrl + IGoto line.

Shortcuts for tools:

Shortcut Key Command
Shift + F7Check spelling (with plugin).
Alt + F12Remove trailing spaces (with plugin).
Ctrl + TIndent (with plugin).
Ctrl + Shift + TRemove Indent (with plugin).
F8Run "make" in current directory (with plugin).
Ctrl + Shift + DDirectory listing (with plugin).

Shortcuts for help:

Shortcut Key Command
F1Open gedit's user manual.