How to Install Sublime Text on Ubuntu

Ubuntu Sublime Text For Html Featured

Sublime Text is one of the most popular text/code editors, and for good reason: you can extend its functionality by using hundreds of plug-ins. Let’s see how you can install Sublime Text on your Ubuntu-based distribution, enable Package Control, and install packages for your development needs.

Install Sublime Text on Ubuntu

In the past, to install Sublime Text, you had to download its package from its official site and install it the manual way. Unfortunately, this meant that whenever there was an update available, you had to repeat the process.

Today, installing Sublime Text on any Ubuntu-based distribution is much easier. The easiest way is through the Software Center, where you only have to click on the “Install” button.

Ubuntu Sublime Text For Html Software Center

You might notice that this uses snap instead of apt. If you prefer to use the terminal, just enter the following command to install the Sublime Text snap package.

Ubuntu Sublime Text For Html Terminal Snap Classic

If you prefer “apt,” you will first have to add its repositories and security key:

The next step is to make sure apt can work with HTTPS sources:

Ubuntu Sublime Text For Html Add Rep Key

Sublime Text offers two channels you can use for its updates: a “stable” and a “developer” one. You can choose the first by using:

We don’t suggest you use the developer version unless A) you are a developer, and, probably most importantly, B) you have paid for it. Yes, you can use Sublime Text for free, but officially you are supposed to pay for a license if you keep using it.

The developer version demands this license from the get-go, so, as we said, don’t choose it if you neither have a specific need for it nor have bought a license for the application.

If you have paid for it and have no problem with unforeseen consequences, due to the somewhat unstable nature of the developer version, choose it with:

For the contents of the repository to be accessible by apt, you first have to run an update:

Finally, install the program itself with:

Ubuntu Sublime Text For Html Apt Install Sublime

After its installation completes, you can now find Sublime Text in your Applications menu.

Ubuntu Sublime Text For Html Installed In Menu

Installing Packages in Sublime Text

Before you start installing packages on Sublime Text, you have to install the main one, with which you will control them: Package Control. This is much easier than it sounds since you only have to select “Tools -> Install Package Control …”

Ubuntu Sublime Text For Html Install Package Control

After it’s installed, visit Sublime Text’s “Command Palette.” To do that, use the Ctrl + Shift + P shortcut on your keyboard.

Ubuntu Sublime Text For Html The Command Palette

Now you’re ready to start installing extra packages to extend Sublime Text’s functionality. Start by typing “install” in the command palette.

Ubuntu Sublime Text For Html Command Palette Install Something

Choose “Package Control: Install Package” from the list of available options. After that, select the package you wish from the hundreds available and press Enter.

The Command Palette allows you to filter down the package list as well to help in pinpointing the ones you want. For example, if you type “HTML,” the package list will show only packages with that term in their name.

Ubuntu Sublime Text For Html Command Palette Html Filter

After a package is installed, if it needs to inform you about something or allows you to tweak some options, a new “Package Control Messages” document might pop up in Sublime Text’s main interface. In most cases, if you don’t care about being informed of every aspect of the software you use and don’t want to get too granular with its configuration, you can safely ignore them.

Ubuntu Sublime Text For Html Package Control Message

There are so many packages available that we couldn’t realistically list all of them. This also means that whatever you need, it will be there available for you to install and use. This is what makes Sublime Text so useful.

Are you using Sublime Text? If not, what alternative did you choose and why? Do you have any suggestions for other plug-ins we missed?

Odysseas Kourafalos Odysseas Kourafalos

OK's real life started at around 10, when he got his first computer - a Commodore 128. Since then, he's been melting keycaps by typing 24/7, trying to spread The Word Of Tech to anyone interested enough to listen. Or, rather, read.

Leave a Comment

Yeah! You've decided to leave a comment. That's fantastic! Check out our comment policy here. Let's have a personal and meaningful conversation.