Sublime is a powerful cross-platform text editor built especially for editing code, markup, and prose. It supports various programming languages and you can extend its functionality by using available plugins.
The key features of a sublime text and source code editor are –
- Highly customizable both in appearance and functionality
- Go anything feature lets you quickly navigate files, lines, or symbols
- Python-based plugin API
- Syntax highlighting
In this article, I will discuss how to install and use Sublime Text 3 in Ubuntu Linux.
To follow this guide you should have the following.
- A system running a recent version of Ubuntu
- Access to a user account that has superuser privileges
How to install Sublime Text 3
Sublime Text 3 is available for installation from the Ubuntu repository and Ubuntu Software but relatively they can have an older package so we will install Sublime Text 3 from its official repository.
First, run the following command to refresh the local package repository and upgrade the packages on your system –
sudo apt update && sudo apt upgrade -y
Install the dependencies required to add a new repository over HTTPS –
sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common
Next import the repository’s GPG key by using –
curl -fsSL https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
Add the repository key by using the following command –
sudo add-apt-repository "deb https://download.sublimetext.com/ apt/stable/"
Once the repository is enabled you can install Sublime Text 3 by executing the given command in your terminal –
sudo apt install sublime-text
When required you can update it at a later stage.
Start Sublime Text 3 on Ubuntu
Once the installation is completed you can launch Sublime text and source code editor on your system. Search sublime in Activities and click on the icon when it appears as given in the image below.
This will display the user interface of Sublime Text as you can see in the image below.
Now you can start writing or editing text or source code using Sublime Text and source code editor.
You have successfully set up Sublime Text 3 on your Ubuntu system. Now if you have a query then write us in the comments below.