This tutorial is about how to install and use Sublime Text Editor on Linux. We will do our best for you to understand this guide. I hope you will like this blog How to Install and Use Sublime Text Editor on Linux. If your answer is yes, please share after reading this.
Check how to install and use Sublime Text Editor on Linux
Sublime Text is a proprietary cross-platform text editor available for Linux, Windows, and macOS, used for “code, markup, and prose.” It has often been called the best code editor for a long time. Sublime Text faces stiff competition from new modern code editors like Atom and Visual Studio Code. Despite this, Sublime Text still has a decent user base on Linux.
Installing Sublime Editor on Linux Systems
Sublime Text Editor is cross-platform, you can use it on Linux, Windows or Mac systems. To install Sublime Text 3 on different versions of Linux, please refer to the instructions below.
Install Sublime on Debian/Ubuntu
$ wget -qO – https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add –$ sudo apt-get install apt-transport-https$ echo “deb https://download.sublimetext.com/apt/stable/” | sudo tee /etc/apt/sources.list.d/sublime-text.list$ sudo apt-get update$ sudo apt-get install sublime-text
Install Sublime on CentOS/RHEL
$ sudo rpm -v –import https://download.sublimetext.com/sublimehq-rpm-pub.gpg $ sudo yum-config-manager –add-repo https://download.sublimetext.com/rpm/stable/x86_64 /sublime-text.repo$ sudo yum install sublime-text
Install Sublime on Fedora
$ sudo rpm -v –import https://download.sublimetext.com/sublimehq-rpm-pub.gpg$ sudo dnf config-manager –add-repo https://download.sublimetext.com/rpm/stable/x86_64/ sublime-text.repo$ sudo dnf install sublime-text
After the installation is complete, you can set Sublime Text Editor as your default text editor by going to Favorite Applications in the Start menu. I am using Linux Mint 19.3, depending on the OS type you can set the default option. You can also start Sublime Text Editor from the terminal by typing:
Install Package Manager for Sublime Editor
Sublime Text by default does not come with features that make it powerful. Whether you want packages for front-end web development, back-end development, scripting, configuration, or database management tools, we’ve got you covered.
Package information can be found in Package Control. To install packages, we first need to install “PACKAGE CONTROL”, which handles package management (install, enable, remove, disable, list, etc.) for sublime. Press “CTRL + SHIFT + P”. The command palette will open. Type “Install Package Control” and press ENTER.
Now you can start installing packages, listing packages, removing or disabling, etc. Press “CTRL + SHIFT + P” → COMMAND PALLET → “TYPE Package” → It will show all the options you can use for package management.
Install packages in Sublime
To install any package, press “CTRL + SHIFT + P” → COMMAND PALETTE → “install package” → “Package name”. Below you will find the list of packages that we are going to install and we will see how to configure the properties of the packages.
This package gives you more options for managing files and folders. After installing Sublime, you can go to “SIDEBAR” → RIGHT CLICK → OPTIONS APPEAR. You can then install “SideBarEnhancements” and see the difference. To install the sidebar enhancements: COMMAND PALETTE → INSTALLATION PACKAGE → SIDEBAR ENHANCEMENT.
Sublime gives us the ability to change the color scheme and UI syntax. The color scheme will define the syntax colors for our code, while the theme will change the look of the user interface. I am using the “BEFORE DAWN” theme. You can choose the one that seems best to you. You can check available themes from packages/themes control. To install a theme – COMMAND PALLET → INSTALL PACKAGE → PREDWAN.
This pack adds beautiful icons to your files and folders in the sidebar. You can choose from a few options. I use “ONE FILE ICON”. To install the file icon – COMMAND PALETTE → INSTALL PACKAGE → A FILE ICON.
The SFTP package allows me to synchronize my projects/code (Folders) on remote servers. This is very useful in many cases like when your production servers are running in the cloud and your development machine is local, where you can easily synchronize your codes with remote servers.
To install SFTP – COMMAND PALETTE → INSTALL PACKAGE → SFTP. To configure SFTP, choose your project folder that needs to be synced remotely. In the folder, the “sftp-config.json” file will be created.
It is an SFTP configuration file where details like username, hostname, password and remote path are declared. You can also enable options like “upload_on_save” which will sync your changes immediately when you save your local copy.
FOLDER → RIGHT CLICK → SFTP → REMOTE MAP → SFTP-CONFIG.JSON.
Sublime by default has no built-in terminal. Terminus is a cross-platform terminal for the sublime. Install Terminus – COMMAND PALETTE → INSTALL PACKAGE → TERMINAL.
Two ways to start Terminus:
CONTROL PALLET → TERMINAL: CHANGE PANEL. CONTROL PALLET → TERMINAL KEY COMBINATIONS → DECLARE HOT KEY.
This package allows you to sync your packages and settings across multiple devices. It uses Github-Gist, providing a reliable and secure way to store your backups. To install SYNC configuration – COMMAND PALETTE → INSTALL PACKAGE → SYNC SETTINGS.
The Bracket Highlighter pack matches a variety of brackets and even custom brackets. You can also customize colors, different media styles and highlight mode. To install Bracket Highlighter – COMMAND PALETTE → INSTALLATION PACKAGE → HIGHLIGHT BRACKET.
In addition to the 6 packages mentioned in the previous section, there are hundreds of other packages available. Explore different package control packages and try the one that suits your needs.
Sublime Shortcuts are customizable and you can port them if you’re trying to switch to other editors like VScode or Atom. To customize your keyboard shortcuts, COMMAND PALETTE → PREFERENCES: KEY COMBINATIONS. There are two sections in the keybinding, one is the default keybinding and the other is the user-defined keybinding where you can put custom keybindings. You can get the list of shortcuts and their function from “DEFAULT KEYMAP FILE”.
Final Words: How to Install and Use Sublime Text Editor on Linux
Hope you understand this article How to Install and Use Sublime Text Editor on Linux, if your answer is no, you can ask anything via the contact forum section linked to this article. And if your answer is yes, share this article with your family and friends.