Web_Designer
Web_Designer

Reputation: 74550

Edit Sublime Text 2's default snippets

I've been using Sublime text 2 for the past few days, and I have to say it's been amazing!

I have added many snippets already, but can't figure out how to edit Sublime's default snippets like the script element (script+tab).

In my opinion the script element shouldn't have a type attribute in HTML5, so I'd like to edit that snippet.

Problem is, I can't find it in the /Packages/User folder like the user defined snippets.

Any help would be appreciated!

Upvotes: 31

Views: 24709

Answers (2)

Simon Arnold
Simon Arnold

Reputation: 16177

Mac Answer

Go in the menu:
Sublime Text 2 -> Preferences -> Browse Packages...
Than open the HTML folder.
Double click on html_completions.py
Search for script and edit the value.

Hope this help someone.

Upvotes: 17

fraxel
fraxel

Reputation: 35269

For this its in Packages/HTML/HTML.sublime-completions. To find this kind of stuff all you have to do is do a find anything (Ctrl+Shift+F on linux, don't know for mac..) then bung the sublime folder in the where field and search away!

Upvotes: 28

Related Questions