Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

How to Code AngularJS Quickly with Sublime Text Editor

DZone's Guide to

How to Code AngularJS Quickly with Sublime Text Editor

Sublime Text Editor can help you write in AngularJS much more quickly.

· Web Dev Zone
Free Resource

Discover how to focus on operators for Reactive Programming and how they are essential to react to data in your application.  Brought to you in partnership with Wakanda

After working with AngularJS for sometime now, I was looking for an editor that helps me code efficiently and effectively with AngularJS. This is when I discovered the Sublime Text Editor. This article presents tips on what needs to be done to write AngularJS code with the Sublime Text Editor.

I have to confess that it has been a fulfilling experience to code in AngularJS with Sublime once installation and configuration are done. I was able to complete my AngularJS hello world program within few minutes. Trust me, it is worth your time. Let me know what you think about it.

Do the following and enjoy the Angular ride:

  • Download and install Sublime Text Editor from http://www.sublimetext.com/.
  • Download Angular Sublime package (zip file) developed by the Angular-UI team from this page: https://github.com/angular-ui/AngularJS-sublime-package. This page consists of greater details on further customizing Sublime for AngularJS.
  • Unzip and name the root package (angularjs-sublime-packager-master) as “AngularJS”. Make sure you have all the files within this package only.
  • Copy AngularJS folder.
  • Open Sublime Text Editor and paste the “AngularJS” folder by opening “Preferences > Browse Packages”
  • Paste some of the following configuration (JSON format) by opening the “Preferences > Settings – User”. The file would look like the following:
// Settings in here override those in "Default/Preferences.sublime-settings", and
// are overridden in turn by file type specific settings.
{
"auto_complete_selector": "source - comment, meta.tag - punctuation.definition.tag.begin",
"auto_complete_triggers":
        [
            {
            "characters": "ng-controller=\"*",
            "selector": "punctuation.definition.string"
            }
        ]
}
  • Close Sublime and open it again. And, try your AngularJS hello world program. You could check the preferences related to AngularJS and customize appropriately as shown in following screenshot.  After that, you're all set to code!
    Sublime AngularJS Preferences

Learn how divergent branches can appear in your repository and how to better understand why they are called “branches".  Brought to you in partnership with Wakanda

Topics:
angularjs ,sublime text ,html5 ,web dev ,javascript

Published at DZone with permission of Ajitesh Kumar, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}