About the author

josh

Share

Sublime Text 3: Worth the upgrade?

By josh / July 25, 2013

You’ve heard the buzz about the Sublime Text 3 beta: Goto Definition and Goto Symbol? Across whole projects? Yes, please! But when you head over to the Sublime site, you realize those new features come at a cost: You’re going to have to fork over your hard-earned cash to get the upgrade. And the cost […]

Share

Fix Sublime Text’s quirky PHP, SASS variable selection

By josh / July 18, 2013

Editing PHP and SASS variables is awkward in Sublime Text. Both languages use a $ prefix for variables, but Sublime pretends not to know that. When you try to select a variable, either by double-clicking it or with your favorite keyboard shortcut, Sublime selects the text portion of the variable but not the prefix. This […]

Share

How to wrap selected code with a snippet in Sublime Text

By josh / June 26, 2013

Reader Simon asks: What is the easiest way to wrap some existing code in an if statement, preferably using built-in Sublime features? Snippets are the way to go here, but not all snippets support wrapping existing code. Simon didn’t mention what language he’s interested in, so for this example we’ll look at the JavaScript if […]

Share

Sublime’s secret selection mode

By josh / June 18, 2013

You’ve done it, I’ve done it: Once in a while, everyone copy-pastes some code from the Internetz. No shame in less typing, right? Only now your carefully formatted code has a block with line numbers and extra indentation: $(function() { 1. function typeLess() { 2. console.log(“Copy-and-paste rulez!”); 3. }; }); Doubtless you could fix this […]

Share

Win a free Sublime Text license

By josh / June 11, 2013

Note: This contest is over, but I offer it periodically to Sublime Text Tips newsletter subscribers. Sign up here today so you can participate next time: http://sublimetexttips.com/newsletter Sublime Text is a key part of your daily workflow. You couldn’t live without it and the dozens of plugins that let you tweak and customize to your […]

Share

How to troubleshoot broken Sublime Text plugins

By josh / June 4, 2013

Plugins: Great when they work, exasperating when they crash or just silently fail to do your bidding. While writing the PHP workflow section of Sublime Productivity, I’ve spent a good bit of time configuring and troubleshooting new plugins. Here are a few tips that have helped me when things didn’t go according to plan: If […]

Share

How to quickly add a new Sublime Text snippet

By josh / May 21, 2013

Reader Lucas C. recently converted from TextMate. He writes: How am I supposed to quickly add a snippet in Sublime when I realize I need it, when I have to Google the XML syntax first? Also, why can’t I get a simple list of snippets that are defined for the current language? That all seems […]

Share

How to move a file from the Sublime Text side bar

By josh / May 21, 2013

A few months ago, a reader wrote asking whether there’s an easy way to move files around in the Sublime side bar, since you can’t drag and drop them. At the time, I suggested using the Reveal command from the SideBarEnhancements plugin to open the folder in Windows Explorer or Finder, then do the reorganization […]

Share

Create and Open GitHub Gists from Sublime Text

By josh / May 21, 2013

I use GitHub gists when I want to save a snippet of code for easy reuse, or to save readers of my Sublime Productivity ebook from having to retype code examples. Creating gists through GitHub’s web interface is a bit of a pain, though. I used to bounce back and forth between Sublime Text and […]

Share

Clean up stray HTML tags with this plugin

By josh / May 16, 2013

Dave writes: When working on HTML, I’ll end up with an extra closing div tag sometimes. I wish there were a quicker way to find it other than manually searching or that Sublime would somehow know when there are too many closing tags present and alert me immediately. Yeah, I hate this too. At least […]

Share

How to delete lines that start with a given set of characters

By josh / May 9, 2013

Subscriber Alex recently asked whether there’s a good way to remove lines starting with a given set of characters. I’m not aware of a built-in feature that does exactly that in one step, but it’s pretty easy to accomplish. Here’s how: Click Find | Find. Switch to regular expression mode by clicking the button labeled […]

Share

Ack! Where’d My Sublime Text Shortcuts Go?

By josh / May 7, 2013

Sublime Plugin Fever. If it hasn’t hit you yet, it probably will. A blog post pops into your news feed: “The Ultimate Clojure-Erlang-Node.js-CoffeeScript Workflow in Sublime Text!” Wow, must read. The author lists off nine awesome plugins that have doubled his productivity, and 30 minutes later you’ve installed and test-driven all of them. They’re everything […]

Share

Starting a New WordPress Plugin with Sublime Text

By josh / May 7, 2013

Starting a new project is always fun — no unfamiliar code to grok, no need to worry about breaking existing features. Then … the setup begins Copy and paste the files from a previous project. Delete a bunch of files. Whack blocks of unneeded code. Update jQuery. Download and unzip libraries from Github. “Yay!” turns […]

Share

How to view file changes in a git-style diff

By josh / May 2, 2013

It’s late in the day, and the website is coughing up 500 errors. You hate to do it, but there’s no choice: You’re going to have to edit a file on your production server. You pop it open, make a few changes. Your fingers reach for the save shortcut… And that queasy feeling hits your […]

Share

How to Add Sass Support in Sublime Text

By josh / April 30, 2013

Note: This is my most popular posts, but there are a lot more killer Sublime tips where this came from. Sign up here to get them: http://sublimetexttips.com/newsletter Sass, short for Syntactically Awesome Style Sheets, is a massively popular tool for web developers that takes a lot of the pain out of writing CSS. Unfortunately, Sublime […]

Share

View your changes live in a browser while you edit in Sublime Text

By josh / April 25, 2013

Miguel writes: Sometimes I work with the Coda editor on my Mac, and it lets me edit code in a window and at the same time see in an split second window the preview of this file. Can Sublime do this? I haven’t seen anything that lets you load a preview of an HTML file […]

Share

Using Sublime Text snippets to compose emails

By josh / April 23, 2013

Sublime Text’s snippets are a great productivity booster. If you’re not familiar with this feature, a snippet is a block of boilerplate code or text that you insert by typing a keyword and hitting the Tab key. For example, typing “lorem” (without the quotes) and pressing Tab will insert a block of lorem ipsum filler […]

Share

Flatland: The best minimal theme for Sublime Text

By josh / April 13, 2013

The first time I tried Sublime Text, I was completely turned off by the editor’s user interface “chrome”: I hated the glossy gradients, the subtle shadows that gave the tabs that 3D look and the harsh mismatch between the dark editor window and the light sidebar. It all felt a little cheesy. What I didn’t […]

Share

Building HTML lists with multi-select in Sublime Text

By josh / April 4, 2013

When you first switch to Sublime Text, it’s easy to miss out on Sublime’s power by using it like your old text editor. Heck, it’s easy to do even when you’ve used it for a while. I recently received an email from Sublime user Peter, who was wondering if Sublime allows you to find and […]

Share

Is learning Sublime a waste of time?

By josh / February 26, 2013

Like many programmers, I’m a tools junkie. I especially love to play with editors like Sublime Text and learn their ins and outs. But sometimes I can’t help but wonder, “Is this really making me a happier, more productive software developer?” And then there are days where I’m blown away by how much time Sublime […]

Page 4 of 5