Stencil for Visual Studio CodeThis extension adds support for the Stencil template language. FeaturesSyntax highlightingThis extension includes a TextMate grammar wirtten specifically for Stencil. This should allow for the best possible syntax highlighting: Also included is a Stencil for HTML language that supports both Stencil and HTML: SnippetsSnippets are included for all common tags:
Snippets include tab stops so you can easily move around: Autoclosing pairs are set up for You can also use the Toggle Comment keyboard shortcut to create comments.
This will generate a IndentationIndentation rules are included for both Stencil and Stencil for HTML. Thanks to these rules, Visual Studio Code will suggest the proper indentation. This makes moving lines around a lot easier: Even better, the Reindent Lines command will just work: ConfigurationThis extension is set up to use the following file extensions:
If you use Stencil exclusively for HTML and would like to use the
Known IssuesMixed grammars are not without issues and neither is Stencil for HTML. Because of the way grammars are embedded, Stencil will not be supported in embedded CSS or JavaScript. The template will work fine, but syntax highlighting and indentation will be off. I am looking into ways to improve this, but a perfect solution may not be possible. |