- Установка Sublime Text 4 в Linux
- Устанавливаем Sublime Text 4 в Debian / Ubuntu
- Устанавливаем Sublime Text 4 в Fedora
- Устанавливаем Sublime Text 4 в Arch / Manjaro
- Заключение
- How to Install and Use Sublime Text Editor in Linux
- Installing Sublime Editor in Linux Systems
- Install Sublime On Debian/Ubuntu
- Install Sublime on CentOS/RHEL
- Install Sublime on Fedora
- Install Package Manager for Sublime Editor
- Install Packages in Sublime
- Sidebar Enhancement
- Themes
- File Icon
- Terminus
- Sync Settings
- Bracket Highlighter
- Sublime Shortcuts
- If You Appreciate What We Do Here On TecMint, You Should Consider:
Установка Sublime Text 4 в Linux
Если вы занимаетесь программированием в той или иной форме, то вам необходим хороший редактор кода. Существует множество редакторов кода для программистов, на нашем сайте уже не раз упоминалось о них, в том числе и о редакторе Uncoded, о котором вы можете прочесть перейдя по этой ссылке. Сегодня же речь пойдет о еще одном хорошем редакторе кода – Sublime Text 4. Вполне возможно, вы уже сталкивались с ним, видели его или читали о нем. Sublime Text предоставляет все необходимое для работы с кодом. Так же вы можете расширить его функционал установив необходимые расширения. С последней версией, а именно Sublime Text 4 изменился так же и его внешний вид, нельзя сказать что кардинально, но все же.
Да, этот редактор кода не бесплатный, в отличии скажем от того же Uncoded или Atom, но можно использовать бесплатную версию не ограниченное время, так же это никак не скажется на функционале. А о бесплатной версии вам будет напоминать лишь периодически появляющееся окно в котором вам будет предложено купить его.
Устанавливаем Sublime Text 4 в Debian / Ubuntu
И так, давайте перейдем к установке Sublime Text 4 в дистрибутивах основанных на Deb пакетах, это Debian, Ubuntu, MX Linux, Linux Mint и так далее. Первым делом необходимо добавить репозиторий из которого и будет произведена установка. Открываем терминал и вводим команду:
Далее нужно загрузить и добавить в систему GPG ключ, предварительно у вас должна быть установлена утилита “wget, устанавливается она командой “”sudo apt install wget”. А так же установлен пакет “apt-transport-https”, для установки данного пакета, а так же добавления GPG ключей вводим следующую последовательность команд:
Осталось обновить списки пакетов и можно приступать к установке Sublime Text 4 в дистрибутивах Linux основанных на Deb пакетах:
После установки запускаем редактор кода Sublime Text и можем приступать к работе:
Устанавливаем Sublime Text 4 в Fedora
Установка Sublime Text 4 в дистрибутиве Fedora отличается от установки в Deb ориентированных системах. В Fedora установка Sublime Text выглядит немного проще, так как меньше команд придется задействовать что бы установить данный редактор кода. И так, давайте сначала загрузим и добавим в систему GPG ключи:
Добавляем репозиторий, из которого и будет установлен этот редактор кода:
Осталось лишь выполнить команду для установки, давайте введем ее в терминале и установим Sublime Text 4:
Устанавливаем Sublime Text 4 в Arch / Manjaro
В дистрибутивах основанных на Arch установку Sublime Text 4 можно осуществить несколькими способами, к примеру установить из репозитория AUR, либо, добавить репозиторий от самих разработчиков данного редактора кода. Думаю, правильней будет установка из репозиториев которые предоставляются разработчиками Sublime Text. Так мы и сделаем, первым делом загрузим и добавим в систему GPG ключи, предварительно установив curl, если конечно он у вас не установлен. Вводим команды на установку curl, а затем загружаем GPG ключи:
И осталось лишь произвести установку, вводим команду, которая обновит списки пакетов и установит Sublime Text 4:
После установки можно запустить редактор кода и начать кодить в свое удовольствие.
Заключение
В свое время я много работал с Sublime Text, начинал я с версии Sublime Text 2. Правда, на данный момент использую другой редактор кода, но, в любом случае, не редактор кода пишет сам код, тут все зависит от личных предпочтений. Пощупав Sublime Text 4, могу сказать что это все тот же старый добрый редактор, который и был, правда, добавились современные плюшки, изменился интерфейс и так далее, все на современный лад. Как уже говорилось выше, демонстрационная версия не ограничивает сам функционал редактора, вам об этом будет напоминать лишь периодически всплывающее окно, закрыв которое, можно спокойно продолжать кодить дальше. При необходимости конечно, можно приобрести Sublime Text 4, заплатив за лицензию.
Более подробную информацию касательно самого редактора кода, а так же всех изменений которые произошли в Sublime Text 4, ищите на официальном сайте.
А на этом сегодня все, надеюсь, данная статья будет вам полезна.
Хотелось бы выразить огромную благодарность тем, кто принимает активное участие в жизни и развитии журнала, огромное спасибо вам за это.
Журнал Cyber-X
Источник
How to Install and Use Sublime Text Editor in Linux
When speaking about text editors and IDE’s there is always a never-ending debate among programmers which text editor/IDE is best. Well, the choice is always personal; I have seen people sticking with single editor/IDE and some people using 2 to 3 editors/IDE’s at a time. It depends on the nature of work and the features editor/IDE provides.
This article is about a popular text editor that is distinguished for its speed, attractive user interface, simple to use, rich community support, and a ton more to say. Yes, that is “Sublime Text”. Initial release in 2008 and written in C++ and Python, Sublime Text is cross-platform and highly customizable. At the time of writing this article, the latest version is 3.2.2.
Sublime Text text is neither open source nor free, you have to purchase a one-time license. But you have an option to use it for evaluation and there is no time limit to purchase the license.
Installing Sublime Editor in Linux Systems
Sublime Text Editor is cross-platform, you can use it in Linux, Windows or Mac systems. To install Sublime Text 3 in different flavors of Linux, refer to the below instructions.
Install Sublime On Debian/Ubuntu
Install Sublime on CentOS/RHEL
Install Sublime on Fedora
Once the installation is completed, you can set Sublime Text Editor as your default text editor by going to preferred Applications from the start menu. I am using Linux Mint 19.3, depending upon your OS flavor you can set the default option.
Set Sublime Editor as Default
You can also start Sublime Text Editor from the terminal by typing:
Install Package Manager for Sublime Editor
Sublime Text by default does not ship with features that make it powerful. Either you want packages for Front End Web Development, Back End Development, Scripting, Configuration Management tools, or Database you got it.
Package related information can be found in package control. To install packages we have to first install “PACKAGE CONTROL” which takes care of package management (install, enable, remove, disable, list, etc.) for sublime.
Press “ CTRL + SHIFT + P “. It will open the command pallet. Type “ Install Package Control ” and press ENTER.
Install Package Control for Sublime
Now you can start installing packages, list packages, remove or disable, etc..
Press “ CTRL + SHIFT + P ” → COMMAND PALLET → “ TYPE Package ” → It will display all options you can use for package management.
Sublime Package List
Install Packages in Sublime
To install any package press “ CTRL + SHIFT + P ” → COMMAND PALLET → “ install package ” → “ package Name “.
Install Package for Sublime
Below is the list of packages we will be installing and see how to configure the properties of the packages.
Sidebar Enhancement
This package gives you more options to handle files and folders. After installing Sublime you can go to “SIDE BAR” → RIGHT CLICK → OPTIONS WILL BE DISPLAYED. Then you can install “SideBarEnhancements” and see the difference.
To install SideBar Enhancements – COMMAND PALLET [ CTRL + SHIFT + P ] → INSTALL PACKAGE → SIDEBARENHANCEMENT.
Themes
Sublime gives us the option to change the UI and Syntax color scheme. The color scheme will set the syntax colors for our code while Theme will change the UI look.
I am using “PREDAWN” theme. You can choose whichever you feel best. You can check the available themes from package control/themes.
To install a theme – COMMAND PALLET [ CTRL + SHIFT + P ] → INSTALL PACKAGE → PREDWAN.
Install Theme in Sublime
File Icon
This package adds pretty icons to your files and folders in the sidebar. There are a few options you can pick from. I am using “A FILE ICON“.
To install File Icon – COMMAND PALLET [ CTRL + SHIFT + P ] → INSTALL PACKAGE → A FILE ICON.
Install Icons in Sublime
SFTP package allows me to sync my projects/code (Folders) in 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 sync your codes to remote servers easily.
To install SFTP – COMMAND PALLET [ CTRL + SHIFT + P ] → INSTALL PACKAGE → SFTP.
To set up the SFTP, choose your project folder which needs to be remotely synced. Inside the folder, the “sftp-config.json” file will be created.
This is an SFTP settings file where details like username, hostname, password, and the remote path to be declared. You can also enable options like “upload_on_save” which will sync your changes immediately when you save your local copy.
NOTE: “sftp-config.json” is specific to a particular folder. For each remote mapping, a new configuration file will be created.
FOLDER → RIGHT CLICK → SFTP → MAP TO REMOTE → SFTP-CONFIG.JSON.
sftp Configuration for Sublime
Terminus
Sublime by default does not have terminal integrated. Terminus is a cross-platform terminal for sublime.
To install Terminus – COMMAND PALLET [ CTRL + SHIFT + P ] → INSTALL PACKAGE → TERMINUS.
Two ways to start Terminus:
- COMMAND PALLET [ CTRL + SHIFT + P ] → TERMINUS: TOGGLE PANEL.
- COMMAND PALLET [ CTRL + SHIFT + P ] → TERMINUS KEY BINDINGS → DECLARE SHORTCUT KEY.
Terminus Key Binding
Terminus in Sublime
Sync Settings
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 Settings – COMMAND PALLET [ CTRL + SHIFT + P ] → INSTALL PACKAGE → SYNC SETTINGS.
Sublime Sync Settings
Bracket Highlighter
Bracket Highlighter package matches a variety of brackets and even custom brackets. You can also customize colors, different bracket-style, and highlight mode.
To install Bracket Highlighter – COMMAND PALLET [ CTRL + SHIFT + P ] → INSTALL PACKAGE → BRACKETHIGHLIGHTER.
Install Bracket Highlighter for Sublime
Other than the 6 packages mentioned in the above section there are 100’s of packages available. Explore different packages from Package Control and try it whichever satisfies your needs.
Sublime Shortcuts
Sublime shortcuts are customizable and you can port the shortcuts if you are trying to switch to other editors like VScode or Atom.
To customize your keyboard shortcuts, COMMAND PALLET [ CTRL + SHIFT + P ] → PREFERENCES: KEY BINDINGS. There are two sections in keybinding, one is default keybinding and the other is user-defined keybinding where you can place custom keybindings. You can get the list of shortcuts and its function from “DEFAULT KEYMAP FILE”.
Sublime Shortcuts
In this article, we have seen how to install sublime text 3 in Linux. How to install packages and a few important packages and shortcuts. This article is not created in relation to configuring sublime text for any specific programming language. In the next article, we will see how to setup sublime text 3 for python development.
If You Appreciate What We Do Here On TecMint, You Should Consider:
TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
We are thankful for your never ending support.
Источник