Sublime Text is a sophisticated text editor for code, markup, and prose. You'll love the slick user interface, extraordinary features, and amazing performance.
You need to hit the following commands.
sudo apt install apt-transport-https
sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common
curl -fsSL https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo add-apt-repository "deb https://download.sublimetext.com/ apt/stable/"
Finally, run the commands below to install.
sudo apt-get update
sudo apt install sublime-text
When it's done, Sublime Text should be installed and ready to use.
#Method 2 (Easy Way)
you can also install sublime using snap (https://snapcraft.io/). you can install snap by hitting the following command.
sudo apt install snapd
After Installation, you can install sublime by a single command.
sudo snap install sublime-text --classic