For developing native web languages I use Sublime Text 2 (http://www.sublimetext.com/). As many other editors Sublime Text offers a great plugin system, which allows you as a developer to add various functionality by installing additional packages to your Sublime Text instance.
Within this post I’ll introduce some plugins I’m using in order to increase my developer performance.
Package Control is the most powerful and important plugin, it allows you to add new plugins to sublime without typing endless commands into the console or manually copying files to the application directory.
In order to install Package Control you’ve to execute the following script from Sublime Text’s 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; 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’
Emmet (previously known as Zen Coding) is great for creating HTML elements because you’re typing a kind of CSS Selector style statements and Emmet is automatically creating the corresponding HTML for you (see figure 1)
Crunch your JS files by using Google Closure Compiler (CTRL + ALT +m)
Tag is great for devs that are writing a lot of declarative code because it automatically adds closing tags when you write the opening tag.
Instant StackOverflow Search Plugin. But-Saver
Adds Git support to Sublime Text including built-in Diff Viewer. This plugin is one of the best time savers for me. (figure 2)
Allows you to write CoffeeScript in Sublime Text and offers features like Syntax Highlighting, Snippets, Assertions
Compile your CoffeeScript file directly from within Sublime Text 2 [CTRL + SHIFT + C]
Allows you to write Node.JS in Sublime Text and offers features like Syntax Highlighting, Snippets, Assertions
Launch your Node.JS file directly from the editor [CTRL + ALT + n + r]