Skip to content

Instantly share code, notes, and snippets.

@vigneshncc
Created June 24, 2016 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vigneshncc/363db7d7b9790f953ce3a80dcca066c3 to your computer and use it in GitHub Desktop.
Save vigneshncc/363db7d7b9790f953ce3a80dcca066c3 to your computer and use it in GitHub Desktop.
How to Code AngularJS Quickly with Sublime Text Editor
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!
Source: https://github.com/angular-ui/AngularJS-sublime-package
@vigneshncc
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment