Skip to content

adrhumphreys/vscode-silverstripe

Repository files navigation

Silverstripe

Provides SilverStripe syntax highlighting and snippets.

Powered by Sanchez

Features

  • Reads the project composer.lock file to determine the available snippets.
  • Php snippets follow psr-2 standards
  • Snippets inject use item if available and possible.
  • Supports 4.* and 3.*.
  • Uses full word prefixes so you don't have to remember abbreviations.
  • Includes snippets for addons modules such as tagfield and linkable.
  • .ss templates include scope and conditional indentation.
  • .ss templates support go to definition for <% include %>, <% themedCSS %> and <% themeJavascript %>.
  • .ss templates autocomplete paths include, themedCSS and themeJavascript. ie. includepagination will complete to <% include SilverStripe/Blog/Pagination %> if found in the appropriate directory.

Options

Add your own snippets

Enable emmet

Open Preferences -> Settings

Add below settings to enable Emmet for .ss files:

"emmet.includeLanguages": {
    "silverstripe": "html"
}

Contributions

Go for gold, if it adds value, add it and I'll merge it.

About

Basic template syntax highlighting for Silver Stripe template files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published