2.8. Sublime Text text editor
Install Sublime Text:
1wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/sublimehq-archive.gpg
2echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
3sudo apt update
4sudo apt install -y sublime-text
2.8.1. Packages
Install Package Control in the menu
Install the following packages:
A File Icon – Sublime Text File-Specific Icons for Improved Visual Grepping
Ansible – Syntax highlighting for Ansible
Apply Syntax – Syntax detector for Sublime Text
Dockerfile Syntax Highlighting – Dockerfile syntax
Git Config – Sublime Text 2 language file for .gitconfig and .gitignore files
Indent XML – Plugin for Sublime Text editor for reindenting XML and JSON files
Jinja2 – Jinja2 Syntax Support for TextMate and Sublime Text
JSON Key Value – Alternative language definition for the JSON syntax
Language French Français – French Spelling Language for Sublime Text
LiveReload – LiveReload plugin for SublimeText
Markdown Editing – Powerful Markdown package for Sublime Text
Markdown Preview – Markdown preview and build plugin for Sublime Text
Markdown TOC – Generate a table of contents (TOC) in a markdown document
ReStructured Text Snippets – Restructured Text snippets and code completion hotkeys
Sass – Sass and SCSS syntax for Sublime Text
Search Anywhere – Quickly search on multiple search engines from the current selection
SideBarEnhancements – Enhancements to Sublime Text sidebar. Files and folders.
2.8.2. Integration
To associate text files with Sublime Text:
directly use the files browser, or
edit
~/.config/mimeapps.list
, e.g.text/plain=sublime_text.desktop
(cf. Files associations)