+++ date = "2018-09-16T21:37:32+00:00" publishdate = "2023-12-29T07:08:55+00:00" title = "My Sublime Text Setup" slug = "my-sublime-text-setup" author = "Thedro" tags = ["php","sublime","webdev"] type = "posts" summary = "Sublime Text is a great general purpose performant text editor. It provides a lightweight interface and an excellent plugin packaging system." draft = "" syntax = "" toc = "1" updated = "" +++ {{< image source="/images/my-sublime-text-setup.png" >}} {{< /image >}} [Sublime Text](https://www.sublimetext.com/) is a great general purpose performant text editor. It provides a lightweight interface and an excellent plugin packaging system. While I absolutely love [Vim](https://www.vim.org/) and [Geany,](https://www.geany.org/) Sublime Text serves as a good compromise between flexibility and efficiency, especially when doing web development oriented tasks. Everyone has their preferred plugin arrangement and I'll show you what my set up looks like. ## Preferences Sublime stores its settings in `json` format. You can find my preferred settings right here in [my git repository.](https://github.com/tdro/dotfiles/blob/master/.config/sublime-text-3/Packages/User/Preferences.sublime-settings) Since this write up is mainly focused on the plugins that are installed, no further details will be provided about my Sublime preferences. ## Plugins [Advanced New File](https://packagecontrol.io/packages/AdvancedNewFile) --- An improved implementation of the new file function in Sublime. Eliminates some of the quirkiness of the native new file shortcut, providing more control and speed when creating new files. [Auto Set Syntax](https://packagecontrol.io/packages/AutoSetSyntax) --- This plugin automatically sets the syntax of a file based on the first typed line. This is useful when creating a new file where the language is not known because the file extension has not yet been set. [Bracket Highlighter](https://packagecontrol.io/packages/BracketHighlighter) --- A tag bracket highlighter. No more hunting around to see where a tag ends. [CSS Format](https://packagecontrol.io/packages/CSSFormat) --- Allows you to reformat CSS on the fly into different forms, i.e compact, expanded, minified, etc. This is my go-to plugin when it is necessary to reformat portions of CSS quickly for readability. [Dayle Rees Color Schemes](https://packagecontrol.io/packages/Dayle%20Rees%20Color%20Schemes) --- A variety of colour schemes by Dayle Rees. This provides a nice assortment of syntax coloring schemes. [Elm Language Support](https://packagecontrol.io/packages/Elm%20Language%20Support) --- A plugin that provides [Elm](https://elm-lang.org/) syntax highlighting. [Emmet](https://packagecontrol.io/packages/Emmet) --- Good plugin for improving HTML workflow. Provides the use of abbreviations to quickly define multiple tags. [Hooks](https://packagecontrol.io/packages/Hooks) --- Allows a user to run commands based on event hooks like "_open new file_" or "_save file_". Sometimes this is used to trigger a lazy live browser reload everytime a file is saved. You can view my poor man's browser reload script in [my dotfiles `git` repository.](https://github.com/tdro/dotfiles/blob/34f6dc572e5b4032a1549e6d95a0e28a2a060921/.local/bin/browser-refresh) [Origami](https://packagecontrol.io/packages/Origami) --- Split a given window into multiple sections. This plugin eliminates the annoyance of having to juggle between two or more files. [PHP Getters and Setters](https://packagecontrol.io/packages/PHP%20Getters%20and%20Setters) --- This plugin provides a quick way to generate getters and setters for a PHP class. [PHP Unit Kit](https://packagecontrol.io/packages/PHPUnitKit) --- PHP unit testing kit for Sublime Text. [Predawn](https://packagecontrol.io/packages/Predawn) --- This is one of my favorite themes for Sublime Text. [Sass](https://packagecontrol.io/packages/Sass) --- SASS and SCSS syntax highlighting. [Shell Command](https://packagecontrol.io/packages/ShellCommand) --- Beautiful plugin that allows arbitrary shell commands to be ran from within Sublime Text. [Sublime Linter](https://packagecontrol.io/packages/SublimeLinter) --- General purpose code linting framework. Good for picking up errors in the syntax of multiple languages based on their documentation. [Sublime Linter-csslint](https://packagecontrol.io/packages/SublimeLinter-csslint) --- CSS code linter. [Sublime Linter-phpcs](https://packagecontrol.io/packages/SublimeLinter-phpcs) --- PHP code linter. [Vue Syntax Highlight](https://packagecontrol.io/packages/Vue%20Syntax%20Highlight) --- Vue syntax highlighting. ## Conclusion That's it. These are the plugins that I currently use in my web development work flow.