Sublime Text 2 Tips and Tricks (Updated)

Sublime Text 2 Tips and Tricks (Updated)

Tutorial Details
  • Editor: Sublime 2
  • Availability: OSX, Linux, Windows

Sublime Text 2 is one of the fastest and most incredible code editors to be released in a long time! With a community and plugin ecosystem as passionate as this one, it just might be impossible for any other editor to catch up. I’ll show you my favorite tips and tricks today.

Sublime Text 2 is currently available for all major platforms: OS X, Linux and Windows.


1 – Bleeding Edge Versions

Sublime is in active development. If, like me, you want to use the latest possible version of the app, you can download the dev build. You’ll find that new (auto) updates are available every other day or so.

Download a dev build of Sublime 2 here.


2 – Get a Better Icon

Update: here is a better icon.

In its defense, Sublime Text 2 is still in a beta state. The official icon will likely/hopefully change with the official release. Until then, Nate Beaty created an alternative icon, if you prefer it.

To integrate it, you need to replace the existing “Sublime Text 2.icns” file with this new one. On a Mac, browse to Sublime 2 in your Applications/ folder, then right-click and “View Package Contents.” Lastly, browse to Contents/Resources/, and drag the new icon in, overwriting the existing one.

Please take note of the fact that, if you’re using the frequently updated development version of Sublime Text, with each update, the icon will be removed. With that in mind, don’t worry about the icon for the time being.


3 – Access the Command Palette

Similar to TextMate, we can use Sublime’s command palette by accessing the Tools menu, or by pressing Shift + Command + P, on the Mac. Whether you need to visit a Preferences page, or paste in a snippet, all of that can be accomplished here.

Access the command palette

4 – Lightning-Fast File Switching

File Switching

Press Control or Command + P, type in the name of the file you wish to access (fuzzy finder), and, without even pressing Enter, you’ll instantly be transported to that file. While Vim and apps like PeepOpen offer a similar functionality, they’re not nearly as fast as Sublime’s implementation.


5 – How Did We Survive Before Multi-Selection?

Editors like TextMate have long offered vertical selection, which is quite neat. But, with multi-selection, you can have multiple cursors on the page. This can drastically reduce the need for using regular expressions, and advanced search and replace queries. Perhaps a quick visual demonstration is in order…

To enable multi-selection, you have several options:

  • Press Alt or Command and then click in each region where you require a cursor.
  • Select a block of lines, and then press Shift + Command + L.
  • Place the cursor over a particular word, and press Control/Command + D repeatedly to select additional occurrences of that word.
  • Alternatively, add an additional cursor at all occurrences of a word by typing Alt+F3 on Windows, or Ctrl+Command+G on the Mac. Amazing!!

6 – Indent Guides

Update: this feature now comes preinstalled with Sublime Text 2.

It’s such a small feature, but I’ve always loved how Notepad++ on Windows displays indent guides; it makes the page much easier to navigate and format. Sublime Text 2 offers this ability, via a plugin created by Nikolaus Wittenstein.

Indent Guides

To integrate this plugin:

  • Download it
  • Rename the folder to “Indent Guides” and drag it into the Packages folder. On a Mac, this path would be Application Support/Sublime Text 2/Packages

7 – Package Control

The steps outlined in the previous tip (#6) are a bit tedious, aren’t they? Instead, we can install the excellent Sublime Package Control, which streamlines the entire process.

To install “Package Control,” open Sublime and press Control + `. Next, paste the following snippet into the console.

 import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())

Don’t worry if you don’t understand the code above; just copy and paste!

Console

Lastly, restart Sublime Text, and browse to Preferences -> Package Settings. If the installation was successful, you’ll now see a Package Control item in that list.

With Package Control installed, the process of adding new plugins and functionality becomes incredibly simple!

For a usage example, refer to the next item in this list.


8 – Alignment

If you’re the type who prefers to line up your equal signs – for example, in your JavaScript…

// Before  
var joe = 'joe'; 
var johnny = 'johnny'; 
var quaid = 'quaid';

// After
var joe    = 'joe';
var johnny = 'johnny';
var quaid  = 'quaid';

…this process can be automated, via the Sublime Alignment plugin. Rather than downloading and installing it manually, let’s instead use Package Control (outlined in #7).

  • Press Shift + Command + P
  • Type “install,” to bring up the “Package Control: Install Package” option, and press Enter
  • Look for “Alignment,” and press Enter to install it.
  • You’re done; so easy! Type Shift + Command + A to auto-align.
Auto-align

This process can be repeated for all of the typical plugins we install, such as Zen Coding.


9 – Vim Fanatic

I’m a huge fan of Vim. The amount of power it provides is insane. The fact that I’ve switched over to Sublime Text 2 should speak volumes then!

If you’re using a dev build of Sublime Text (see #2 in this list), you can enable Vintage mode, which provides support for the Vi commands that we know and love — okay…some of us love. The rest of you hate it! :)

To enable Vintage mode, browse to Preferences/Global Settings - Default. Once this file opens, browse to the very bottom, and change "ignored_packages": ["Vintage"] to "ignored_packages": []. Next, restart Sublime, press the Escape key, and, tada: command mode!

Block Cursor

One thing you may notice is that, in command mode, it can be difficult to find the cursor (especially when taking advantage of things like bookmarks). On more than one occasion, I’ve found myself trying to hunt down its location.

While it’s not a perfect solution, a plugin, called “SublimeBlockCursor,” attempts to remedy this issue.

Note: While the readme states that SublimeBlockCursor can be installed, via Package Control, I wasn’t able to find it. Instead, I had to clone the project manually into the Packages folder.


10 – Distraction Free Editing

Sometimes, we need to filter out all of the additional fluff that gets in the way of our coding. Use “Distraction Free Mode” to take this idea as far as possible. This option is available, via the View menu. Select “Enter Distraction Free Mode,” or use the Mac keyboard shortcut, Control + Shift + Command + F.

Distraction Free Mode

11 – You Can Still Use TextMate Bundles

Slim

TextMate snippets and themes port over nicely to Sublime Text. You only need to drop them in the Packages folder — .tmbundle extension intact, and Sublime will recognize the files. This means that the entire catalog of TextMate themes will work in Sublime!

For example, I’ve been working with the (fantastic) Slim templating engine a good bit lately, and needed better syntax highlighting. Fred Wu created a bundle for TextMate, but, tada, it works perfectly in Sublime Text as well! If you’re interested, you can download the Slim bundle here; it includes both snippets and syntax highlighting.


12 – Custom Themes

The default theme for Sublime Text is excellent, but I much prefer a custom light and dark theme, Soda, created by Ian Hill.

Soda Theme

Installation

As taken from the Github page…

“If you are a git user, the best way to install the theme and keep up to date is to clone the repo directly into your Packages directory in the Sublime Text 2 application settings area.”

Using Git

Go to your Sublime Text 2 Packages directory and clone the theme repository using the command below:

 git clone https://github.com/buymeasoda/soda-theme/ "Theme - Soda"

Download Manually

  • Download the files using the GitHub .zip download option.
  • Unzip the files and rename the folder to Theme – Soda
  • Copy the folder to your Sublime Text 2 Packages directory

Activating the Theme

To configure Sublime Text 2 to use the theme:

  • Open your Sublime Text 2 User Global Preferences file: Sublime Text 2 -> Preferences -> User Global Settings
  • Add (or update) your theme entry to be “theme”: “Soda Light.sublime-theme” or “theme”: “Soda Dark.sublime-theme”

Example User Global Settings

{
    "theme": "Soda Light.sublime-theme"
}

13 – Page Crawling

Sublime Text provides us with a few different ways to query a page (outside of the standard search functions).

Functions

Need a quick way to browse to a specific function or method?

Function Crawling

Type Control/Command + r to reveal a popup that allows for this very thing (notice the @ symbol)! Even better, the search is fuzzy as well, which is particularly helpful for huge classes.

HTML

What if you want to immediately transition to a specific part of an HTML page – say, to the div with a class of container. Type Control/Command + p, then #, and you’ll instantly see a tree of your document.

Go to Line Number

To quickly move to a specific line number on the page, you can press Control + g. However, you’ll notice that, once again, it’s pulling up that palette (Control/Command + p), and appending the : symbol. This is adopted from Vim.

This means, in addition to Control + g, you can also type, Control/Command + p, and then :LINE_NUMBER.


14 – Fetch Remote Files With Ease

Nettuts+ Fetch

Let’s say that you’re a fan of Normalize.css. Perhaps, you download it and save it to a snippet, or store the stylesheet, itself, in an assets folder. That way, for future projects, you only need to copy and paste.

The only problem with this method – as we’ve all discovered – is that, if a few months have passed, it’s more than possible that the asset (in this case, Normalize.css) will have been updated by the creator. So your options are to either use the, now, out-dated version of Normalize, or, once again, return to the GitHub page and pull in a fresh copy. This all seems tedious.

Created by Weslly Honorato, Nettuts+ Fetch is the solution to our dilemma. It can be installed, via Package Control.

Usage

You’ll only use two commands, when working with Fetch. First, we need to save some file references. Again, bring up the command palette, and search for “Fetch.” For now, choose “Manage Remote Files.”

Manage Remote Files

What’s great about Sublime Text 2 is that configuration is incredibly simple. To assign references to online asset files, we only need to create an object, like so (don’t worry; one will be pre-populated for you, after installation):

So, to pull in the latest copy of jQuery (if you don’t want to use a CDN):

{
	"files":
	{
		"jquery": "http://code.jquery.com/jquery.min.js"
	}
}

Learn more about using Nettuts+ Fetch.


15 – Prefixr Plugin

Built by by Will Bond (creator of Package Control), the Nettuts+ Prefixr plugin allows you to automatically update your entire stylesheet to include support for all of the various required CSS3 vendor prefixes. This way, you never have to visit the website itself; you merely type a keyboard command, and:

.box {
   border-radius: 10px;
   box-shadow: 0 0 5px rgba(0,0,0,.4);
}

…will be converted to:

.box {
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;

	-webkit-box-shadow: 0 0 5px rgba(0,0,0,.4);
	-moz-box-shadow: 0 0 5px rgba(0,0,0,.4);
	box-shadow: 0 0 5px rgba(0,0,0,.4);
}

Usage

Once installed (via Package Control), select your stylesheet (or a single block), press ctrl+alt+x on Windows and Linux, or cmd+ctrl+x on OS X, and the code will instantly be run through the Prefixr web service.


16 – Launch Sublime From the Terminal

Sublime Text 2 includes a command line tool, subl, to work with files on the command line.”

To use it, create a symlink to the tool.

ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl

As long as ~/bin is in your path, that should do the trick!

cd myProject
subl .

Refer here for additional instructions.


17 – Autoformat HTML

A bit oddly, the ability to auto-format HTML is not included as part of the default build of Sublime Text. The Tag plugin, among other things, hopes to provide a solution, however, due to a few shortcomings – namely when dealing with HTML comments – it falls short.

The Tag plugin can be installed via Package Control.

To test its auto-formatting skills, the following HTML:

<html>
<head>
	<meta charset=utf8>
	<title></title>
	<!-- begin-->

	<!-- end comment -->
</head>
<body>

<h1>Hi there</h1>

<h2>Bye</h2>
</body>
</html>

…will be changed to:

<html>
	<head>
		<meta charset=utf8>
		<title></title><!-- begin-->
<!-- end comment -->
	</head>
	<body><h1>Hi there</h1>

		<h2>Bye</h2>
	</body>
</html>

Yikes; it looks worse than it is. From my tests, it incorrectly does not place the body tag on its own line, and gets pissy when dealing with HTML comments. Until these issues are fixed (or a native solution is provided), it’s best to manually select a block of HTML to reformat, rather than the entire page.

A $200 bonus will be paid to the first Sublime Text plugin developer who creates and submits the definitive “Nettuts+ HTML Formatter” plugin.


18 – Create a Plugin

If you’re feeling adventurous, dig into Sublime Text’s huge plugin development community, and start contributing. We have an excellent tutorial on the process of building a ST plugin here on Nettuts+. Be sure to check it out if that interests you!


Conclusion

The more I work with Sublime Text 2, the more I realize how incredible it is. But all of this would mean nothing if not for the fact that it’s an insanely fast editor, and, even better, it’s not finished!

Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • http://farfanoide.com.ar/ iVan

    nice tut! been using this for awhile. didn’t know it can do so much.
    thanks!!!!

  • Droidik

    After final version of Sublime, TextMate is going to die :-)

  • Wyatt

    I still find nothing compelling enough to purchase a text editor when Notepad++ and Fraise are available for Windows and Mac, respectively.

    • http://www.jc-designs.net Jeremy Carlson

      Agreed. I tried the trial, but I saw nothing worth paying for. Notepad++ = awesome.

    • Waylon

      Where can I find Notepad++ for mac?

  • alex

    I completely agree that Sublime Text 2 is a great editor. I have been using it for a long time now and was instantly impressed with it. I also use to use VIM a lot but I have used it less since sublime 2 beta was released. Some other cool things is that you can split your view like in VIM and it has the project manager like Textmate. Besides all the cool features it has, it is also just a really nice looking editor. I know that’s not such a big deal but you will definitely notice it the first time you use it. The big plus though is the speed. I use the 64 bit version and it starts up incredibly fast. There are a bunch of plugins for it but not nearly as much as there are for Vim. Hopefully that will change as more people start using it and hopefully your article will help in that.

  • waste

    Great article! I’ve been using Sublime since 1.4 version and it’s great but what I really miss is the Sparkup plugin from Vim. I’ve found Zen coding for Sublime 2 but it’s not that great :( Hope Sparkup will come to Sublime 2, but for now I gotta stick to the two editors which is not fun at all ;(

  • robin

    Very good editor, using it since the beginning.

    Tip for browsing through your functions fast:
    You can trigger the function list by ctrl or command + r.

    • http://www.jeffrey-way.com Jeffrey Way
      Author

      Thanks, Robin! Just added this in.

  • Murray

    What about FTP features? Can you browse through you’re FTP with it like in notepad++?

    • http://www.jeffrey-way.com Jeffrey Way
      Author

      I believe there’s a FTP plugin available.

      • Murray

        I had a look around for one & could not find one. I love the editor but I don’t like jumping between it & notepad++ for online & offline projects.

      • http://twitter.com/n00ge Chad Calhoun

        @wbond has a SFTP package available. He also built the Package Manager. Check out his site for a list of his packages:
        http://wbond.net/sublime_packages/

    • Florian

      +1
      FTP would be really awesome! Where can I find the plug-in?

    • http://www.bumstaerk.com Martin Haakansson

      I use Transmit to Mount my FTP server. That way I can work on the server, kinda like Coda.
      I grew a little tired of Coda, some time ago .. And wanted to try something new. But I really missed the option to work server-side.

      I don’t know if this clears up your question.

      Other than that – amazing article, as always. Some nifty tricks in there, which I’ll surely be using.

    • http://wbond.net wbond

      I wrote an SFTP plugin for Sublime Text 2, which is available at http://wbond.net/sublime_packages/sftp. It currently only supports SFTP and does not work with regular FTP. You probably don’t want to use FTP if you can help it just due to security issues. Also, most hosts support SFTP.

      It is a commercial plugin, but has an unlimited free trial with nag screen like ST2.

      • http://wbond.net wbond

        Update: The newest version of my SFTP plugin now also supports FTP.

    • http://balupton.com Benjamin Lupton

      Why would you want a ftp client in your notepad? You can use a ftp client (E.g. Cyberduck) and right click on the files in cyberduck and click “edit with sublime text”, when you make a save in sublime text, then cyberduck will detect it and upload it to the server.

  • http://dribbble.com/tipugin Alexander Tipugin

    Agreed, Sublime Text 2 is one of the closest Textmate competitors at the moment.

  • http://johnschop.nl Schop

    The thing I really like about Notepad++ that Sublime does not have is the possibility to ‘expand’ and ‘collapse’ whole functions, classes or even loops or if..then statements with the little ‘+’ and ‘-’ icons in the margin of the document. This can be really helpful, especially in combination with the indent guides you mentioned.

  • http://www.arvag.net/ Gavrisimo

    It seems to be really good editor right out of the box, but needs some better project management capabilities(at least right click on folder and option “open that folder in windows explorer”) and i couldn’t get zen coding to work properly in it… :(

    • http://www.arvag.net/ Gavrisimo

      Ehh you have to right click file to get that “Open containing folder”… :) Now just to see why zen coding is not working and then i might make full switch to Sublime :)

      • waste

        Describe what is your system and what you’re doing to install. I might help you since I installed it just today.

  • DADE

    Found it about week ago, brilliant editor. Best alternative for TextMate.

  • http://www.umarjadoon.com Umar

    Thanks Jeffery! Excellent post, Sublime is awesome!

  • Keyamoon

    Notepad++ has two features that I’m addicted to that I still have not found in other editors:

    1. Highlighting pairing html/xml tags. This helps me make sure I didn’t miss and ending tag. Highlighting pairing curly braces in php (with html in between) is also another useful feature that I like.
    2. When you double click and select a word/phrase in Noptepad++, it finds and highlights that word everywhere in your file. It’s very helpful when you want to just quickly see where else a word (a variable name for example) is being used throughout your code.

    I would be so glad to see these two features—especially the tag pairing—added to sublime text 2.

    • http://www.jeffrey-way.com Jeffrey Way
      Author

      Hey Keyamoon – Both of those features are available as Plugins. Just use Package Control to install them.

  • David

    What font is that in tip #12? I would like to use it.

  • http://www.webmaster-source.com redwall_hp

    So how does this compare to the age old (and continually updated) Mac text editor known as BBEdit? It’s been actively developed for longer than OS X has existed, and TextMate’s feature set seems to be roughly in line with it. I don’t see why it isn’t mentioned more.

    • http://www.webmaster-source.com redwall_hp
    • http://balupton.com Benjamin Lupton

      After using textmate for a while and having crashes every few hours I moved to BBEdit, then moved to Sublime Text 2. BBEdit is powerful, without a doubt, however Sublime Text 2 is powerful and beautiful.

  • http://www.islamiceventfinder.com Islamic Event Finder

    It’s an incredible app, no doubt about that. If they can quickly cook up these 2 features that would make it the fantastic.
    - Collapse/Expand feature – would be a good hand-in-hand feature for the distraction free mode
    - File Outline feature – so we can glance at all the function headers and quickly jump to one

    That’s all I ask for and I can take my wallet out for this!

  • Weldo

    Why are you making it so hard to change icons on the Mac?

    1) Right-click on the image above then choose copy image.
    2) Click on the app then choose File > Get Info.
    3) Click on the icon for the app then hit Command-V to paste.

    Done.

  • f1shman

    no ftp support to edit my files online so I will keep using aptana but i would love to use sublime!

  • http://www.hello-sze.com Sze

    I happen to like the Sublime Icon. It is indeed Sublime!

  • http://andrewburgess.ca Andrew Burgess

    Pretty cool! I’m personally a (Mac)Vim user, but if I wasn’t, I’d have a hard time choosing between Sublime Text 2 and BBEdit.

    I’m surprised at the number of people saying they love Notepad++, though. I know it’s a great program, but I didn’t realize it could do as much as ST2 (according to other commenters). Maybe one of you should do a similar tut for NP++! :)

  • Sam Parmenter

    Had some properties with that package management. After installing it, there are a lot of crashes when exiting or using dual monitor etc.

    • http://wbond.net Will

      It is likely that you are not using the development build of Sublime Text 2. The current beta build (2095) had a bug in some threading code that can cause crashes with Package Control. You can grab the latest dev build from http://sublimetext.com/dev.

  • Fily

    I love tutorials about text editors. Keep up the good work Jeff!

  • Daquan Wright

    I have E – Text Editor for Windows. Is Sublime Text 2 better than E (and if so, why)?

    I can understand the loyalty to Notepad++. Light weight, feature rich, lots of plug-ins. My biggest gripe with it, is that it’s not very pleasing to the eye and the intuitive of it does not match other programs, such as E or Aptana.

  • Nemanja Miljkovic

    I have to say, I’ve always been a proud Aptana user. That was until I saw this post.

    Sublime Text 2 is amazing! It looks good – doesn’t occupy a lot of your screen space.
    It’s heavily customizable and supporting TextMate themes is amazing. Creating your own snippets is very easy and you can set up your own tab expand commands and make a snippet work only for one language (so your php snippets won’t work under javascript).

    Easy file opening command (Ctrl + P) makes you never wanna use your mouse to navigate through your 6000 file project (playing with symfony2 ^^) to open a specific file. And it is FAST.

    This is my new editor. Thank you nettuts!

  • ashton

    any chance of getting a prefixr plugin???

    • austin

      +1

    • Mattias

      Want that too!

    • JF

      That would be one great package !

    • http://net.tutsplus.com Jeffrey Way
      Author

      Hmm – good idea! I don’t personally know how to do it. Maybe Will Bond could whip up something quickly?

      I’ll also check on Twitter to see if anyone else has done it.

    • http://www.jeffrey-way.com Jeffrey Way
      Author

      Here is Will’s Prefixr plugin! http://wbond.net/sublime_packages/prefixr

      • JF

        I just noticed it in the package control. I’ve already gave it a go it’s one great plugin.

        Great job, really !

  • MT

    does Sublime 2 have any plugins for PHP validation? does it show errors on the fly?

  • http://w.illia.ms Sean

    I used to be a die hard N++ fan… you couldn’t steer me away from it for anything. I even tried Sublime Text in the past, and even ST2… but finally I decided I’d give it a REAL chance. Yes, at first glance there’s not much compelling about it over N++, but I urge you to use it for a week and really try to learn how it works.

    To start off, go through the entire key bindings file… test out the bindings and learn how they work. There’s some incredibly powerful stuff in there.

    Check out this screencast to see some multiple selection action: http://screencast.com/t/AyX2KlQ0Pp

    N++ will allow you to do multiple selections for inserting, and the backspace key works… but in that screencast you’ll see a bunch of html lines combined using home, end, shift+home, backspace, etc… basically once you’ve got multiple selections, the selection is persistent while you type. You have to hit escape to clear the multiple selection. Once you grasp the power of this you feel like you’ve just figured the power of regular expressions! :)

  • http://www.staplewebdesign.com Andy Staple

    I just switched from Notepad++ to Sublime Text 2 on my Windows machine, and might scrap Coda on my mac for Sublime as well. It just seems to work so well, and its lightning fast.

    I really need to get into the more advanced stuff, but as a simple syntax editor it works wonders.

  • http://www.francisfish.com Francis Fish

    You missed the other multi select thing.

    in your hello world example you could have just put the cursor before Universe, pressed cmd-d three times and it would select all of the universe words. It doesn’t even matter which one you start at it will go round the buffer. Every time you press the sequence it selects the next one.

    With multi select, the other trick is to use wordwise tab if you’re doing an edit on, say a list of column names or something like that.

    • http://www.jeffrey-way.com Jeffrey Way
      Author

      Oh I didn’t know about Command + D. So nice! Thanks for this. :)

      • Jonathan

        I think the Command (Ctrl) + D feature is what really hooked me to Sublime Text. I use it all the time – it is incredibly handy.

    • jf

      AWESOME !!

    • Matt

      Can someone please explain the benefit of multi-select, when I can just declare a variable and do a find/replace, resulting in better code?

      Or is it just a faster way to do find/replace?

  • Ryan

    Thanks so much for this post Jeffrey! I’ve been juggling text editors (since using NetBeans over the last year) and didn’t give ST much of a chance when I downloaded 1.x a few moons ago, my first impressions were that it was too TextMate-ish. However, thanks to your details and descriptions I’m giving it a good run to see if it fits my coding needs… and so far so good!

  • http://koengeerinckx.be Koekie

    Did not get Zencoding to work properly for CSS:

    eg: .myclass{bd} should expand to border but it does not…

    Otherwise, this would have been a great editor!

  • Florian

    Wow, so cool, that it’s available for linux as well.
    Any idea how I can prob. install it? Right now I can just execute it.

  • Jamie Schembri

    Fantastic article, especially given the lack of quality resources on this quality editor.

    Might want to do a backup of any config files before you attempt installation of package control – I attempted this on the latest dev build and had to do a clean reinstall of the app to get it working again.

    Also, here’s a great resource on ST(2): http://sublimetext.info/docs/en/index.html which actually lists options. Bizarrely hard to come across.

  • Andy

    Sublime 2 seems to become a great editor. It incorporates all the cool features of other successfull editors – and it is modern and fast.

    At the moment I am using Notepad++ (Win7) and gedit (Linux) at home, while using TextMate (OS X) at work. So obviously I am looking forward to ONE editor that will perform great under all OSs – and Sublime 2 might become my new default editor (as the licence is per-user, it won’t be too costly also).

  • http://twitter.com/n00ge Chad Calhoun

    Great post on Sublime! Just wanted to point out that the Indent Guides are built in with the latest dev builds. It might be good to note that you’re using the Soda UI theme as well.

    • http://twitter.com/n00ge Chad Calhoun

      Just realized you did point out the Soda UI theme. Sorry about that!

  • http://satyajitranjeev.wordpress.com Satyajit Ranjeev

    I just loved your tips and tricks. Indeed loved how to enable vim modal editing. I do have a question, how do you enable word wrap by default for all files. I set “word_wrap”: true in both File setting user and Global settings user but still get files which are not wrapped. Any ideas?

    • http://WebsiteSetupPro.com/ Sridhar Katakam

      Adding

      “word_wrap”: “true”

      in User preferences file is working fine here.

  • Rez

    Why does the GUI on those OS X screenshots look so much different than the Sublime Text 2 I’m currently trying out? The tab bar in the screenshots for example looks like the one in Google Chrome – nice and neat. In my version it is much darker. I also would love to have “real” Lion scroll bars and not the custom ones I currently see. Does anyone know how?

  • cahva

    I’m a fan of Notepad++ too but I really liked Sublime Text 2 a lot! Project explorer is so much better than in NP++ and also the “Build”-command is so straightforward and just works. For heavy stuff I will still use NetBeans but I think I’ll use ST2 from now on for lighter stuff :)

  • Rez

    Ahhh, I got it now! Please ignore my comment/question from before. So “Soda” isn’t just a syntax highlighting theme but it does actually change the whole graphical user interface of Sublime Text 2. Chrome style tabs, Lion scroll bars, there they are!

    • http://www.jeffrey-way.com Jeffrey Way
      Author

      Yep. :)

  • David

    I really like that icon you suggested, but I can’t figure out how to change it on Windows.

    • jf

      Hi,
      use this website to convert the .icns to ico for windows.

      http://iconverticons.com/

      from there change the icon from to properties.

  • SiSo

    Anyone get crash after install plug-in with Package Control?

    • Sam Parmenter

      Yep, had to delete the folder in application data and start again as it won’t install the package manager without it generating errors.

      I can’t seem to enable the soda theme either. Just doesn’t work. The only way I can change the theme is by using the items in the menu under preferences.

    • http://wbond.net Will

      There was a bug with the python API in the current beta of Sublime Text (b2095) that can cause a crash. If you grab the development build, you won’t experience this. http://www.sublimetext.com/dev

      • SISo

        10x everything’s fine now

  • Aubricus

    Your description of how to install and use package control is a bit brief and glosses over a few important details.

    http://wbond.net/sublime_packages/package_control#Installation

    The above is a more comprehensive guide.

  • jf

    Thank you for this post.

    I was using Notepad++ on Windows and TextMate on Mac. After testing Sublime for a couple of days and browsing through their plugins, I’m gonna stick with Sublime on both Win/Mac.

    The package control is just great !

    Give a try to the Tag Matcher plugin, really nice !

  • http://caffeinecreations.ca Sean

    I just installed sublime to try it out and wanted to add the ExpressionEngine textmate bundle, which I confirmed is possible after google brought me to this post. It works for code highlighting on windows but I can’t seem to get auto complete to work – am I missing something?

  • http://caffeinecreations.ca Sean

    I just installed sublime to try it out and wanted to add the ExpressionEngine textmate bundle, which I confirmed is possible after google brought me to this post. It works for code highlighting on windows but I can’t seem to get auto complete to work – am I missing something?

  • http://www.stevendavisphoto.com Steven

    I like Sublime, but I love how EditPlus has a sidebar with a directory tree explorer. Does this exist in Sublime persistently if you want it? I can’t live without it.

  • dave

    Thank you for your great tips :)
    I don’t understand how you install the textmate bundle. I have googled a lot, but i dont get it work, placing the git content in the package folder. :(

  • http://www.jvsoftware.com Javier

    Oh Jeffrey why can’t you keep the same editor for more than 3 months :)

    • http://www.jeffrey-way.com Jeffrey Way
      Author

      I think it’s some kind of disorder. :)

      • Rick

        Jeffrey, have you given BBEdit a run around the block? I rarely see reviews of this program, however it is extremely powerful. Your thoughts?

  • Giova

    If Vim all of a sudden blew up and died, ST would be my favorite editor. Awesome stuff!

  • http://www.2021.com.au/ David

    Definitely going to have to give Sublime2 a crack now.