Gedit Keyboard Shortcuts: The Complete List

Gedit is the default graphical text editor for the GNOME desktop, built on the GTK toolkit and used across most major Linux distributions, including Ubuntu, Fedora, and Linux Mint. It is also available for Windows and Mac. The fastest way to work in Gedit is to stay on the keyboard. Below is a full, verified list of Gedit keyboard shortcuts, organized by task, along with answers to the most common Gedit questions and a free downloadable PDF.

The five shortcuts most people search for first are Ctrl+D to delete a line, Ctrl+H to find and replace, Ctrl+Shift+S to save as, Ctrl+I to jump to a specific line, and Ctrl+Alt+PageUp/PageDown to switch between open tabs.

What Is Gedit

Gedit is a lightweight, general-purpose text editor with a clean graphical interface. It supports syntax highlighting for source code, multiple tabs, split panes, and a plugin system for extending its default behavior. It ships as the standard text editor on many GNOME-based Linux systems, and it is often compared to Notepad, Notepad++, and Vim, though it sits closer to Notepad++ in terms of ease of use.

Top 10 Essential Gedit Shortcuts

Start here if you only want the shortcuts you’ll actually use every day.

ActionShortcut
Save fileCtrl + S
Save file asCtrl + Shift + S
Find textCtrl + F
Find and replaceCtrl + H
Delete current lineCtrl + D
UndoCtrl + Z
RedoCtrl + Shift + Z
Switch to next tabCtrl + Alt + Page Down
Switch to previous tabCtrl + Alt + Page Up
Go to a specific lineCtrl + I

Selection & Editing Shortcuts

ActionGedit Shortcut
Copy selectionCtrl + C
PasteCtrl + V
Cut selectionCtrl + X
UndoCtrl + Z
RedoCtrl + Shift + Z
Select allCtrl + A
Delete current lineCtrl + D
Move to beginning of lineHome
Move to end of lineEnd
Move to beginning of documentCtrl + Home
Move to end of documentCtrl + End
Move cursor one word rightAlt + Right
Move cursor one word leftAlt + Left
Move current line upAlt + Up
Move current line downAlt + Down
Add a tab stop / indentTab
Remove a tab stop / unindentShift + Tab

Formatting & Case Shortcuts

These are among the most useful Gedit shortcuts that most guides leave out. They let you reformat selected text without touching the mouse.

ActionGedit Shortcut
Convert selection to uppercaseCtrl + U
Convert selection to lowercaseCtrl + L
Toggle case of selectionCtrl + ~

File & Program Shortcuts

ActionGedit Shortcut
New fileCtrl + N
New document in a new tabCtrl + T
Open fileCtrl + O
Open the Quick Open windowAlt + O
Save fileCtrl + S
Save the file as…Ctrl + Shift + S
PrintCtrl + P
Print previewCtrl + Shift + P
Close current documentCtrl + W
Open the file menuF10
Show or hide the side paneF9
Show or hide the bottom paneCtrl + F9
Fullscreen viewF11
HelpF1
Quit programCtrl + Q

Search & Replace Shortcuts

ActionGedit Shortcut
Find textCtrl + F
Find next instanceCtrl + G
Find previous instanceCtrl + Shift + G
Find and replace textCtrl + H
Open and focus the search boxCtrl + K
Clear search highlightingCtrl + Shift + K
Go to a specific lineCtrl + I

Navigation & Tab Shortcuts

ActionGedit Shortcut
Switch to the previous tabCtrl + Alt + Page Up
Switch to the next tabCtrl + Alt + Page Down
Close current tabCtrl + W
Save all tabsCtrl + Shift + L
Close all tabsCtrl + Shift + W
Reopen the most recently closed tabCtrl + Shift + T
Jump to tab 1 through 9Alt + 1 … 9
Open a new tab groupCtrl + Alt + N
Switch to the previous tab groupShift + Ctrl + Alt + Page Up
Switch to the next tab groupShift + Ctrl + Alt + Page Down

Plugin & Tool Shortcuts

These shortcuts depend on plugins being enabled under Preferences > Plugins, so they may not work on a default install.

ActionGedit ShortcutRequires
Check spellingShift + F7Spell Checker plugin
Remove trailing spacesAlt + F12External Tools plugin
Run “make” in the current directoryF8External Tools plugin
Show a directory listingCtrl + Shift + DExternal Tools plugin

Gedit Shortcuts on Windows and Mac

Gedit is not exclusive to Linux. Official builds are available for Windows, and it can be installed on Mac through Homebrew or Flatpak. The core shortcuts above work the same way on Windows, since both platforms use Ctrl as the primary modifier key. On Mac, most Ctrl-based shortcuts still function as-is when using the native or Homebrew build, though some window-management shortcuts, like fullscreen or pane toggling, may follow macOS conventions instead. If a shortcut doesn’t respond on Mac, check Gedit’s Preferences menu, most actions can be remapped manually.

How to Customize Gedit Shortcuts

Gedit doesn’t ship with a built-in visual shortcut editor in most versions, but you can still change keybindings on Linux:

  1. Close Gedit completely.
  2. Open a terminal and check whether the Custom Keyboard Shortcuts plugin is available under Preferences > Plugins. If it is, enable it.
  3. If it isn’t available, create a plugin file at ~/.local/share/gedit/plugins/custom_keys.py and define your bindings there. Community plugin templates exist specifically for this purpose.
  4. Restart Gedit and open Preferences > Plugins again to confirm the new plugin is active.
  5. Test your new shortcut inside a document. If it doesn’t fire, double check that the action name matches Gedit’s internal menu action names, which are documented in Gedit’s GitHub source.

Some low-level shortcuts, like deleting a line, are hard-coded into Gedit’s source and cannot be reassigned through a plugin.

Download the Gedit Shortcuts PDF

Frequently Asked Questions

What is the shortcut to delete a line in Gedit?

Press Ctrl+D. It deletes the entire line the cursor is on, with no need to select the text first.

How do I see all keyboard shortcuts in Gedit?

Gedit doesn’t have a built-in shortcut overlay in most versions. The full list above covers everything documented by GNOME, plus the plugin-based shortcuts that aren’t in the official help file.

Can I customize Gedit’s keyboard shortcuts?

Yes, on Linux, through a custom plugin file placed in Gedit’s plugins directory. See the customization section above for the steps.

Does Gedit have the same shortcuts on Windows and Linux?

Mostly yes. Core editing, search, and file shortcuts are identical since both platforms use Ctrl as the main modifier. Some window and pane shortcuts may behave differently depending on the build.

What is the shortcut to save all open tabs in Gedit?

Ctrl+Shift+L saves every open tab at once.

Is Gedit still maintained in 2026?

Yes, Gedit remains part of the GNOME project and continues to receive updates as part of the GNOME release cycle.

What’s the difference between Gedit and Vim shortcuts?

Gedit’s shortcuts follow standard GUI conventions, similar to most Windows and Mac applications. Vim uses modal editing, where the same key does different things depending on whether you’re in insert, normal, or command mode. If you’re moving from Gedit to Vim, expect a learning curve rather than a direct shortcut translation. You can see the full list in our Vim shortcuts guide.

Conclusion

Gedit’s shortcut set is small enough to learn in a single sitting but complete enough to cover editing, searching, formatting, and tab management without ever touching the mouse. Start with the top 10 list, add the formatting and plugin shortcuts once those become second nature, and use the PDF above as a quick desk reference while you build muscle memory.

READ NEXT:

Pratik

Pratik is the founder of Tutorial Tactic and a productivity tools specialist with 15 years of hands-on experience in Google Workspace, Microsoft Office, and software automation. He has published over 1,500 guides on keyboard shortcuts, software commands, how-to tutorials and workflow optimization, helping readers across the US and India work faster with the tools they use every day. Tutorial Tactic was founded in 2021 with one goal: cut through the noise and give readers exactly what they need fast, verified, and beginner-friendly.
Back to top button