How to do these 2 things in Sublime Text 2?

Viewed 2093

I recently switched editors from Netbeans IDE to Sublime Text 2. In Netbeans when coding PHP if I had a syntax error it would have an error icon at the start of that line.

Sublime Text 2 doesn't seem to do this out of the box. What plugin do I have to install to get this feature?

In Netbeans you can set up code templates. You will basically write for example something like this:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>

and call the template jquery. Then everytime you need to use jquery on a page you just tyoe jquery and hit tab and the script tag will be inserted in that spot.

How to do this type of code template/shortcut in Sublime?

1 Answers
Related