DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
Building Scalable Real-Time Apps with AstraDB and Vaadin
Register Now

Trending

  • What Is Test Pyramid: Getting Started With Test Automation Pyramid
  • Tomorrow’s Cloud Today: Unpacking the Future of Cloud Computing
  • Building and Deploying Microservices With Spring Boot and Docker
  • Chaining API Requests With API Gateway

Trending

  • What Is Test Pyramid: Getting Started With Test Automation Pyramid
  • Tomorrow’s Cloud Today: Unpacking the Future of Cloud Computing
  • Building and Deploying Microservices With Spring Boot and Docker
  • Chaining API Requests With API Gateway
  1. DZone
  2. Coding
  3. Frameworks
  4. Angular 1.5 Packages for Sublime Text 3

Angular 1.5 Packages for Sublime Text 3

In the blog post, I’m going to share a few tips and useful packages for working with Angular JS and SublimeText.

Jalpesh Vadgama user avatar by
Jalpesh Vadgama
·
Sep. 01, 16 · Opinion
Like (3)
Save
Tweet
Share
5.11K Views

Join the DZone community and get the full member experience.

Join For Free
One of my friends was using Sublime Text 3 as an editor for an Angular JS application but he was using it without packages, so he had to do everything manually. I suggested to him a few packages and now he is much more productive than ever. So in the blog post, I’m going to share a few tips and packages for working with SublimeText.

Installing Packages on Sublime Text 3

Sublime Text 3 support packages that make it a great choice for any kind of Web Development project. This makes a developer’s life easier allowing us to be much more productive than ever. Sublime Text does not come with an inbuilt package manager but there is a third party package manager called “Package Control”. You can find more information about that on the following location:
https://packagecontrol.io/

There is also instruction provided for installation at the following link:
https://packagecontrol.io/installation

Angular JS 1.5 Packages for Sublime Text

JS Hint:
If you have ever work with JavaScript you should know about using linters. JS Hint is a JavaScript linter which will lookat  your code and verify that it has proper styling, proper syntax, and report any errors related to JavaScript best practices.

To make sure that this plugin works correctly. You need to install JS Hint installed globally via npm:

 npm install -g jshint 

Then type Ctrl+ Shift + P and select install package.

package-control-sub-lime-text3
Once you click on Install, it will load the extension from the repository and you can install the extension you choose.

image
AngularJS:
This package was developed by the Angular UI Team. It contains lots of functionality like:
  • Code completion for built-in Angular libraries
  • Angular-related snippets
  • Directive completion of Custom Defined Directives
To Take advantage of this plugin’s syntax highlighting You need to change the view type of your HTML page file: View-> Syntax-> HTML(Angular.js).
angular-html-package
And then you can utilize code completion like the following.
code-completion-angular-js
JSFormat:
This package helps you format your JavaScript and JSON. It is based on JS Beautifier. It is highly configurable and you can also define your preferences. There are plenty of options available which you can see using the following link:
https://github.com/beautify-web/js-beautify#options

John Papa’s Angular Snippets for Sublime Text:
John Papa has created great snippets for Angular JS and they are very useful. He has written a nice blog post about how to install it with Sublime Text. You can refer to that using the following link:
https://johnpapa.net/angularjs-snippets-for-sublime-visual-studio-and-webstorm/

After installing that, you can create lots of angular boilerplate code very easily. For example, If you want to create an angular controller just type ngcontroller.

ng-controller-sub-lime-text
Upon pressing tab, it will create an Angular controller like below. It will also follow the best practices written in John Papa’s style guide.

controller-created-sublime-text
That’s it. Now you should be much more productive with Angular and Sublime Text editor. Hope you like this post. Stay tuned for more!
Sublime Text AngularJS

Published at DZone with permission of Jalpesh Vadgama, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Trending

  • What Is Test Pyramid: Getting Started With Test Automation Pyramid
  • Tomorrow’s Cloud Today: Unpacking the Future of Cloud Computing
  • Building and Deploying Microservices With Spring Boot and Docker
  • Chaining API Requests With API Gateway

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: