I’ve previously written about my Sublime Text packages, but I’ve since switched to the excellent Code editor. If you’ve not heard of this editor before, you may be surprised by it. It’s a fast, lightweight, powerful, well supported, free, open source, cross platform, MIT licensed, Electron powered editor, and it’s built by Microsoft. A few years ago nobody would have believed Microsoft would build such a product, but they have, and it’s excellent.
If you’ve already disregarded this editor based on the Visual Studio prefix in its name, please don’t. There really is no relation to Visual Studio, and I suspect that the marketing team at Microsoft were entirely responsible for the naming prefix.
Unlike Atom, Code really is fast. If you’re used to the speed of ST3 then you won’t be disappointed. It feels like a lightweight editor with a few useful IDE features included, such as Git support, debugging integration, and intelligent code completion.
Here are the extensions I use:
- Alignment: Align characters (such as equals or colons) in a multiple line selection.
- Autocomplete WordPress Hooks: Autocomplete provider for WordPress action and filter names.
- Bookmarks: Quickly create and view line bookmarks.
- Dash: Dash documentation integration.
- Incrementor: Advanced increment / decrement actions for just about anything.
- IntelliSense for CSS class names in HTML: CSS class name completion for HTML
- PHP Debug: The xDebug client for Code.
- PHP DocBlocker: More easily create docblocks for your PHP code.
- PHP Intelephense: A high performance and feature rich PHP language server that provides intellisense, code completion, full symbol search, and a bunch more. I’ve found this to be much more performant and more reliable than the more popular PHP Intellisense extension.
- phpcs: Hooks up the phpcs sniffer to Code.
- Rainbow CSV: Highlight columns in CSV files in different colours.
- SCSS IntelliSense: SCSS IntelliSense (Variables, Mixins and Functions) for all files in the workspace.
- SVG Viewer: View rendered SVGs inside Code.
- Trailing Spaces: Highlight and delete trailing spaces in files.
- Transformer: Provides text transformation controls such as sorting, alignment, and filtering.
- XML Formatter: Pretty-print the text inside XML files.
I also use several linter extensions and a bunch of language extensions. There’s plenty of them.
If you’re a stickler for Sublime Text I’d definitely recommend giving Code a try, along with the Sublime Text Keymapping extension.