Install Gedit on Ubuntu 22.10 – Make Gedit Default Text Editor

Install Gedit on Ubuntu 22.10 and make Gedit as the default text editor on Ubuntu 22.10. Gedit is one of the most simple, yet powerful text editor for Linux Systems.

Features of Gedit

  • Files are opened in tabs
  • Full support for internationalized text (UTF-8)
  • Syntax highlighting for lots of languages (Python, Shell, C, C++, HTML, CSS, JavaScript, XML, Markdown and many others)
  • Configurable fonts and colors
  • Print and print preview support
  • Search and replace with support of regular expressions
  • A side panel with an integrated file browser
  • Spell-checking
  • Word auto-completion
  • Undo/Redo
  • Auto indentation
  • Text wrapping
  • Line numbers
  • Right margin
  • Highlight current line
  • Highlight matching brackets
  • Editing files from remote locations
  • Backup files
  • A flexible plugin system which can be used to dynamically add new advanced features

Install Gedit on Ubuntu

Open Terminal (press Ctrl+Alt+T) and run the following command to install the Gedit text editor:

sudo apt install gedit

If you want to install the plugins for Gedit, run the following command:

sudo apt install gedit-plugins

You can get a list of plugins from https://gitlab.gnome.org/GNOME/gedit/blob/master/plugins/list-of-gedit-plugins.md

Set Gedit as default

Right click on a text file and go with “open with” option. Select Gedit here and enable the “Always use for this file type” option from the bottom.

Original Article