Tips for Beginners of the Perfect Editor on Mac, Windows and Linux - Sublime Text 2

Once upon the time, I was using Dreamweaver to code, it’s good, strong, have all the features I need, but it’s so big and expensive. So when I found Netbeans, a really good Open-Source IDE, I was happy. The key features I need are: I need to be able to create projects from folder, and I need to be able to upload the file to ftp easily, also I need hint/auto completion when I’m coding. And Netbeans has it all.

I’ve been using Netbeans for 2 years I think, yet I can never fall in love with it, although it’s the best I could found, but it’s giant, slow and sometimes not stable, and it needs java. I don’t like to install something I don’t need just for a software. And now I want to learn new things like node.js, Ruby on Rails, but Netbeans doesn’t support them.

So I’ve been looking for my Mr. Right IDE. Especially when I switched to Mac, no editor like Notepad++ on Mac, text editing is always a pain in the butt for me. I heard many people suggest Textmate, but when I tried, it just not that good.

After the long journey, today I finally found it, thanks to my geeky friend, the best text editor solution and coding environment – Sublime Text 2.

When I installed and opened it, I was kind of shocked by the interface, it’s like vi.

In other words, it’s not easy to smoothly start to use it. So here’s some note I took, this is how I started.

Tip 1, One click to preview, double click to open

Don’t panic when you find that you can see the content of the file when you one click it. You’re just previewing.

Once you start editing, it will open automatically. Double clicking it will open it as well.

Tip 2, Create a project

Just drag the source folder on the icon,

And there you go, don’t have to do any settings.

Tip 3, Install Package Control

Press Ctrl+to open the Console, copy and paste the code from the Package Control [installation]( page:import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen(''+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation'`

Tip 4, Browse the plugin you need on

For example, I need to be able to sync the files to ftp right away, so I need the plugin SFTP.

To install it, go to Tools -> Command Pallete, choose “Package Control: Install Package”,

Type the name of the plugin and click it, it will automatically install it.

Tip 4, Set the keymap

Keymap/shortcut is one of the most important trick to make things go faster. In Sublime Text 2, there’s no configuration interface, you have to edit the setting file. But if you can code, if you need this software, it assume you will understand how to change the settings right away. Plus you will feel good to yourself as a real geek.

To see the Keymap, go to “Preference -> Key Bindings – Default”

To change the ketmap, open “Preference -> Key Bindings – User” and copy the line of the setting from “Key Bindings – Default” and paste it to “Key Bindings – User”.

And the Keymap for plugins is here:

So now I’m going to code. ( ◜◡^)