Cheatsheet Gedit
Editor de texto padrão do ambiente GNOME (Linux)
Gedit
file
New tab
Ctrl + N
Opens a new document.
Close tab
Ctrl + W
Closes the current document.
Open file
Ctrl + O
Opens an existing file.
Quit
Ctrl + Q
Closes Gedit.
Save
Ctrl + S
Saves the current document.
Ctrl + P
Prints the document.
Save the
Ctrl + Shift + S
Saves with a new name.
Edition
Undo / Redo
Ctrl + Z (undo)
Ctrl + Shift + Z (redo)
Reverts or reapplies actions.
Comment / uncomment
Ctrl + M
Comments the selected block (Comments plugin).
Cut / Copy / Paste
Ctrl + X (cut)
Ctrl + C (copy)
Ctrl + V (paste)
Clipboard operations.
Move line
Alt + ↑ / ↓
Moves the current line (Move line plugin).
Select all
Ctrl + A
Selects all content.
Indent / unindent
Tab (indent)
Shift + Tab (unindent)
Adjusts the indentation of the lines.
Search
Search
Ctrl + F
Opens the search bar.
Clear highlight
Esc
Closes the search bar.
Replace
Ctrl + H
Opens replace.
Next / previous
Ctrl + G (next)
Ctrl + Shift + G (previous)
Navigates through the results.
Go to line
Ctrl + I
Jumps to a line number.
Preview
Full screen
F11
Enables full-screen mode.
Preferences
Menu → Preferences
Configures the editor (theme, tabs, etc.).
Side panel
F9
Shows or hides the side panel.
Switch tabs
Ctrl + Tab
Ctrl + Shift + Tab
Navigates between open documents.
Go to last tab
Ctrl + 9
Jumps to the last tab.
Tips
Enable line numbering
Preferences → View → Line numbers
Shows the line numbers.
Snippets
"Snippets" plugin
Inserts reusable code blocks.
Syntax highlighting
Bottom right corner
Manually changes the file language.
Useful plugins
Preferences → Plugins
Enables extras such the terminal, snippets and file panel.
Integrated terminal
"Bottom panel" plugin
Adds a terminal to Gedit.