HowTo: Install Sublime Text On Linux Ubuntu

According to the official website:

A sophisticated text editor for code, markup and prose

Sublime Text is a proprietary cross-platform source code editor with a Python application programming interface. Sublime Text is surprisingly lightweight and blazing fast. Unlike it's counterparts like Visual Studio Code and Atom, Sublime Text is written in C++ which gives it an advantage in performance. In this post we are going to discuss the process of installing Visual Studio Code on Ubuntu and Ubuntu based Linux distributions.

> Install using official package repository

The process of installing VS Code from the official package repository is fairly simple. Open a terminal by pressing Ctrl + Alt + T and follow the steps given below:

Step 1:

Run the following command to add the package repository to your system:

wget -qO - | sudo apt-key add -
echo "deb apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

Step 2:

Update the package cache to incorporate the new changes:

sudo apt-get update

Step 3:

Finally, to install Sublime Text run:

sudo apt-get install sublime-text

> Install using .deb package

Step 1:

Download the appropriate 32 bit or 64 bit package by clicking here.

Before proceeding remember to change your working directory in terminal to the directory where the .deb package was dowloaded. Use the cd command to change directory.

Step 2:

Install the package using the dpkg command:

sudo dpkg -i FileName.deb

Replace FileName with the name of the file you just downloaded.

Step 3:

Finally, to install any missing dependencies run:

sudo apt-get -f install

Sublime Text has now been successfully installed on your system. Any further queries and suggestions are welcome in the comments section below. If you are interested in trying Atom or Visual Studio Code you can find the installation guide here and here respectively. A detailed post about ten best plugins to get you started with Sublime Text are coming soon.

Show Comments