Try Out Sublime Text 2 For Your Cross-Platform Code Editing Needs

featured sublimetext   Try Out Sublime Text 2 For Your Cross Platform Code Editing NeedsSublime Text 2 is a cross-platform code editor I only recently heard about, and I have to say I’m really impressed despite the beta label. You can download the full app without paying a penny and with no enforced time limit for your evaluation.

So I really think it’s worth taking a look at, in your search for the elusive best code editor ever.

Nifty Features

Column Selection and MultiSelect Editing: A super-powered selection system lets you select an entire column of code using the option-click or middle mouse button by dragging out a rectangle. You can then edit multiple selections at the same time, which pretty much blew my mind. I can see myself having to train my brain to actually make use of this function on a regular basis, but it could be incredibly time saving once you get used to it.

column editing   Try Out Sublime Text 2 For Your Cross Platform Code Editing Needs

AutoCompletion: like every good code editor, Sublime Text 2 will figure out what language you’re writing in and help you out by auto-completing function names. Unqiuely, Sublime Text will also autocomplete variables that you created earlier in the code, which eliminates a good number of bugs when users mistype variable names. Very nifty indeed, especially if you’re the type of  coder who loves to create very descriptive and long variables.

variable autoocomplete   Try Out Sublime Text 2 For Your Cross Platform Code Editing Needs

Syntax highlight and high contrast display: Despite what some people think about high contrast text on a black background, it is actually a lot easier to read. I’ve been using it for about a week now with no headaches and getting a lot more programming done than usual. On a dark background – though there are other colour schemes to choose from – syntax highlighting really stands out and makes a lot more sense.

high contrast   Try Out Sublime Text 2 For Your Cross Platform Code Editing Needs

In-Editor Code Building: for a number of languages, the app will build and run the code without you having to drop out to the command line. This is fantastic for beginners who just want to jump in and get started, and it can even handle large projects for the pro user.

python demo   Try Out Sublime Text 2 For Your Cross Platform Code Editing Needs

Minimap: This is a quick preview of your entire file in the sidebar, with a screen sized rectangle showing where you are now. It lets you jump around your code by sight incredibly quickly. The entire interface is fast, and simple.

Snippets: If you have a block of code you used regular, just create a snippet of it and assign a unique name. Type the name and hit tab to have the entire snippet pasted out for you. For example, typing “html” will auto expand to a basic HTML page structure, while “lorem” will give you a full paragraph of sample text:

snippets   Try Out Sublime Text 2 For Your Cross Platform Code Editing Needs

Extensions

With a python based plugin system, core functionality can be extended greatly, and theres already a wide range of stuff out there. My favourite – an absolute time saving godsend for me – is the WordPress extension, which gives full autocomplete and function definitions with default values for WordPress PHP functions – something you usually have to look up in the codex.

wordpress functions   Try Out Sublime Text 2 For Your Cross Platform Code Editing Needs

It also adds a number of key code snippets, such as a complete post content template for you to customize.

content snippet   Try Out Sublime Text 2 For Your Cross Platform Code Editing Needs

I’d also suggest the Package Control extension, which let’s you easily download new packages and install them without using the console. Installation of Package Control is as simple as opening the console and pasting a block of text.

Summary:

Although your evaluation period with full functionality has no enforced time limit, a full licence technically costs $59. There is a nag dialog every 10 saves or so, but otherwise it’s completely usable. Of course, I would absolutely encourage you to purchase a full license to support the developers if you love the app, but I’m sure they wouldn’t begrudge starving students, and there’s nothing to stop you using it indefinitely.

Have you used Sublime Text 2 yet? What do you think, or do you have a different favourite code editor? Are you more of a traditionalist Emacs kind of coder, a minimalist notepadder, or do you prefer a full blown IDE to develop in?

The comments were closed because the article is more than 180 days old.

If you have any questions related to what's mentioned in the article or need help with any computer issue, ask it on MakeUseOf Answers—We and our community will be more than happy to help.

13 Comments -

0 votes

el tio ska

I’ve been testing out Sublime Text 2 for the past few weeks and it’s great. I find the speed of the app to load and execute impressive. The plugins are great and for Mac users out there, it supports TextMate plugins. Recently came across a plugin for Gists on GitHub, which is sweet. net.tutsplus.com has a good gew tips on adding on to Sublime Text.

0 votes

ArtemZ

>a full licence technically costs $59
Bwahaha! I’ll better stay with emacs which is centuries ahead this bloatware. It’s also free and crossplatform, yeah.

0 votes

James Brooks

How is Sublime “bloatware”? Have you even tried it? It’s lightning fast.

0 votes

Joshua Gray

Another mac “elitist” obviously this guy knows nothing of programming or else he wouldn’t be suggesting that Mac is ahead of anyone in the programming department.

I heard my boss say last week, “Mac is like going to eat at Golden Corral (any buffet with large quantities of low quality food) after you’re used to eating 5 star dinners (PC).”

0 votes

Alexia

You realise your statement makes you a “PC” elitist?

0 votes

James Brooks

Are you joking me?

I’ve been programming on Windows for 12 years, only in this last two years I’ve moved to OSX and yet continue to use Windows for work?

And I agree with Alexia, your pathetic statement, calling someone out on preferring a platform to another, because it simply aids them to do their job better, is elitist.

0 votes

Joshua Gray

Not meant to be an argumentative statement, that doesn’t mean I don’t recognize the trend though — Mac is “cool” I get it. My point is — it’s personal preference, I wouldn’t understand many of the differences in programming because, well, I’ve never used a Mac for anything other than imaging. I’m just getting sick of this mindset that just because you use a Mac — you’re somehow better. Not so.

0 votes

Frank Eves

I’m also a big fan of Sublime Text. I’ve paid for BBEdit, Chocolat and TextMate, but I’m using Sublime Text.

0 votes

muotechguy

Good choice!

0 votes

Gary Bishop

I used emacs for many years, vi before that. I switched to Sublime Text and haven’t looked back. It is a big improvement. I paid the $59, it was money well spent.

0 votes

Michael Brennan-White

I was one of the guys who loved the whole IDE approach but I have seen the light.

I have been using Sublime Text 2 for the last couple weeks and am very impressed with the speed and extendability of the app.

Thanks very much for the tip about the multi-select functionality. I had seen it mentioned in the forum but it finally clicked for me tonight.

One thing I would love to see is jump start articles for different kind of development tasks like javascript, php or coldfusion.

0 votes

muotechguy

It’s an odd feature, but very cool once you force yourself to remember it’s there!

By “jumpstart articles”, do you mean beginner level tutorials?

0 votes

Steel

how to add html template quickly, e.g. type html4 and press CTRL + SHIFT + ENTER or something like that !