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

Action

Keyboard shortcut

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

Reopen the most recently closed tab

Ctrl+Shift+T

Jump to nth tab

Alt+ n

New tab group

Ctrl+Alt+N

Previous tab group

Shift+Ctrl+Alt+Page up

Next tab group

Shift+Ctrl+Alt+Page down

Shortcut keys for working with files

Action

Keyboard shortcut

Create a new document in a new window

Ctrl+N

Create a new document in a new tab

Ctrl+T

Open a document

Ctrl+O

Open the Quick Open window

Alt+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

Action

Keyboard shortcut

Move to the beginning of the current line

Home

Move to the end of the current line

End

Move to the beginning of the document

Ctrl+Home

Move to the end of the document

Ctrl+End

Move the selected word right one word

Alt+Right Arrow

Move the selected word left one word

Alt+Left Arrow

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

Add a tab stop

Tab

Remove a tab stop

Shift+Tab

Convert the selected text to upper case

Ctrl+U

Convert the selected text to lower case

Ctrl+L

Toggle case of the selected text

Ctrl+~

Shortcut keys for showing and hiding panes

Action

Keyboard shortcut

Show / hide the side panel

F9

Open the file menu

F10

Shortcut keys for searching

Action

Keyboard shortcut

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

Action

Keyboard shortcut

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

Action

Keyboard shortcut

Open the gedit user guide

F1