Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Sublime Text 3 default templates

In Sublime Text 3, when I create a new file (HTML, JavaScript, PHP, etc), is there a way to edit the default tags and their indentations? Currently, when I create a new file, say HTML, I get:

<html>
<head>
  <title></title>
</head>
<body>
</body>
</html>

I would like to change it so that a new HTML file creates:

<html>
  <head>
    <title></title>
  </head>

  <body>
  </body>
</html>

Is this possible without plugins or will I have to search for/make one?

like image 203
compostkicker Avatar asked Dec 18 '22 20:12

compostkicker


1 Answers

You can change the default snippet with the PackageResourceViewer plugin.

  • Install PackageResourceViewer through Package Control
  • Press Ctrl+Shift+P and type prv
  • Select PackageResourceViewer: Open Resource
  • Type html and select it.
  • Select html.sublime-snippet
like image 114
blurfx Avatar answered Jan 04 '23 20:01

blurfx