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.
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
Tip 2, Create a project
Tip 3, Install Package Control
to open the Console, copy and paste the code from the Package Control [installation](http://wbond.net/sublime_packages/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('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation'`
Tip 4, Browse the plugin you need on Wbond.net
For example, I need to be able to sync the files to ftp right away, so I need the plugin SFTP.
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 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”.
So now I’m going to code. ( ◜◡＾)