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.

Tab-related Shortcut keys

To Do This

Press This

Switch to the next tab to the left

Ctrl + Alt + PageUp

Switch to the next tab to the right

Ctrl + Alt + PageDown

Close tab

Ctrl + W

Save all tabs

Ctrl + Shift + L

Close all tabs

Ctrl + Shift + W

Jump to nth tab

Alt + n

Shortcut keys for working with files

To Do This

Press This

Create a new document

Ctrl + N

Open a document

Ctrl + O

Save the current document

Ctrl + S

Save the current document with a new filename

Ctrl + Shift + S

Print the current document

Ctrl + P

Print preview

Ctrl + Shift + P

Close the current document

Ctrl + W

Quit gedit

Ctrl + Q

Shortcut keys for editing files

To Do This

Press This

Undo the last action

Ctrl + Z

Redo the last undone action

Ctrl + Shift + Z

Cut the selected text or region and place it on the clipboard

Ctrl + X

Copy the selected text or region onto the clipboard

Ctrl + C

Paste the contents of the clipboard

Ctrl + V

Select all text in the file

Ctrl + A

Delete the current line

Ctrl + D

Move the selected line up one line

Alt + Up Arrow

Move the selected line down one line

Alt + Down Arrow

Shortcut keys for showing and hiding panes

To Do This

Press This

Show / hide the side pane

F9

Show / hide the bottom pane.

Ctrl + F9

Shortcut keys for searching

To Do This

Press This

Find a string

Ctrl + F

Find the next instance of the string

Ctrl + G

Find the previous instance of the string

Ctrl + Shift + G

Search and Replace

Ctrl + H

Clear highlight

Ctrl + Shift + K

Goto line

Ctrl + I

Shortcut keys for tools

To Do This

Press This

Check spelling

Shift + F7

Remove trailing spaces (with plugin)

Alt + F12

Run "make" in the current directory (with plugin)

F8

Directory listing (with plugin)

Ctrl + Shift + D

Shortcut keys for user help

To Do This

Press This

Open the gedit user guide

F1