Following are the steps to create snippet file for each angularjs script:
<snippet>
<content><![CDATA[
Hello, ${1:this} is a ${2:snippet}.
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- <tabTrigger>hello</tabTrigger> -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<content><![CDATA[
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/$1.$2.$3/angular.min.js"></script>
]]></content>
<tabTrigger>jsng</tabTrigger>
<scope>text.html</scope>
The code below represents custom auto-complete snippet for following AngularJS libraries. Create snippet files for following scripts based on above instructions.
Sublime Snippet for Inclusion of Angular.min.js
<snippet>
<content><![CDATA[
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/$1.$2.$3/angular.min.js"></script>
]]></content>
<tabTrigger>jsng</tabTrigger>
<scope>text.html</scope>
</snippet>
Sublime Snippet for Inclusion of Angular-route.min.js
<snippet>
<content><![CDATA[
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/$1.$2.$3/angular-route.min.js"></script>
]]></content>
<tabTrigger>jsngroute</tabTrigger>
<scope>text.html</scope>
</snippet>
Sublime Snippet for Inclusion of Angular-resource.min.js
<snippet>
<content><![CDATA[
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/$1.$2.$3/angular-resource.min.js"></script>
]]></content>
<tabTrigger>jsngresource</tabTrigger>
<scope>text.html</scope>
</snippet>
Feel free to suggest/comment.
[adsenseyu1]
In recent years, artificial intelligence (AI) has evolved to include more sophisticated and capable agents,…
Adaptive learning helps in tailoring learning experiences to fit the unique needs of each student.…
With the increasing demand for more powerful machine learning (ML) systems that can handle diverse…
Anxiety is a common mental health condition that affects millions of people around the world.…
In machine learning, confounder features or variables can significantly affect the accuracy and validity of…
Last updated: 26 Sept, 2024 Credit card fraud detection is a major concern for credit…
View Comments
It's good to know you can create your own snippets, but I prefer to use Bower to handle including 3rd party frameworks and libraries. http://bower.io/
I use Codelobster IDE for AngularJS development - http://www.codelobster.com/angularjs.html