Sublime Text 4 was officially released a day ago. Here’s how to install it on Ubuntu 21.04, Ubuntu 20.04 via the apt repository.
Sublime Text 4 (Build 4107) has a multi-select tab. You can select tabs and display them side by side by holding down Ctrl (or Shift).
You can now automatically switch between dark and light themes to match the look of your system.
The highlights of the other releases are:
- Context-aware autocomplete
- ARM64 support for Linux and macOS (Apple Silicon)
- Python 3.8 support for plugins
- Built-in TypeScript, JSX, TSX support
- GPU rendering. It is disabled by default on Windows and Linux.
- Wayland support for Linux.
There are many other changes. Announcement For more information.
How to install Sublime Text 4 on Ubuntu:
Open a terminal from the system application menu and run the following commands one at a time to install Sublime Text 4 from the official apt repository.
1.) Run the following command to download and install the GPG key.
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
Enter your user password when prompted and press Enter to continue.
Run the command to verify that https is supported.
sudo apt install apt-transport-https
2.) Add the official Sublime Text repository using the command.
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
3.) Finally, update the system package cache and use the command to install the text editor.
sudo apt update sudo apt install sublime-text
You will also receive future updates along with system updates via Software Updater (Update Manager).
How to uninstall sublime text:
To delete the apt repository, launch Software & Updates, go to the Other Software tab and delete the repository row.
Also, to remove the Sublime Text editor, just run the following command:
sudo apt remove --autoremove sublime-text