How to make Sublime Text 3 default templates

11,782

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
Share:
11,782
compostkicker
Author by

compostkicker

Updated on June 17, 2022

Comments

  • compostkicker
    compostkicker almost 2 years

    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?