
Recently started using Sublime Text for a more extended period of time. I spent more time getting it up and running than Brackets, but I think I’m fairly happy with how it’s going. The main reason I switched back? I was teaching using Sublime Text and it was getting ridiculous not knowing the keyboard shortcuts and quick commands that come along with the program.
So I set forth, customizing my ST3 until I was happy with the functionality I had. I’m still working on getting as familiar with it as I am with Brackets and I still fall back on Brackets for a couple of features that I either can’t find in Sublime or assume aren’t in there without adding additional packages. This post is a summary of the packages I’ve installed and use as well as a list of shortcuts. Mostly as a reminder to me in case I ever have to rebuild everything from scratch or stop using Sublime for an extended period of time.
Packages I Use in Sublime Text
- Package Control
- AngularJS
- BracketHighlighter
- ColorCoder
- ColorPicker
- CSS Color Converter
- CSS Format
- CSS3
- FileSystem Autocomplete
- Foundation 5 Snippets
- Git
- HTML5
- HTML Beautify
- Javascript Beautify
- JSLint
- jQuery Tools
- PHP CS
- Placeholders
- SASS Tools
- SASS Beautify
- SCSS
- Sublimerge
- Swift Tools
- WordPress Tools
All packages can be installed using Package Control.
Shortcuts
Color Picker: CMD + Shift + C (requires ColorPicker package)
Sublimerge Quick Panel: CTRL + ALT + D (requires Sublimerge package)
Commenting: CMD + /
Find: CMD + F
Replace: Shift + CMD + F
Move Tabs/Panes: CMD + 1/2/3/4
PackageControl: Shift + CMD + P
Select Line: CMD + L
Setting Automatic Line Wrapping
Go to Preferences > Settings – More > Syntax Specific – User
Enter the following onto the document:
{
"word_wrap": true
}
HTML Entity Encoding
I find myself using this a lot when setting eBooks for clients. To convert to entities:
Select all your code/content, then hold down Shift + CMD + P. Type in “en“, and select HTML: Encode Special Characters and hit the Enter key. Yay, your special characters have been converted to entities.
Theme
Modified Dimmed using Monokai TMTheme Editor.
Chances of anyone besides me finding this useful are kind of slim. But I figured I’d post it out there in case anyone was wondering how to call up the Color Picker or something.
Search/Replace Using Regex
Just make sure this little icon is selected to enable Regex searches:
Resources
Package Control for Sublime Text
Sublime Text 3 (Beta as of this writing)