Search code examples
visual-studio-codepolymer

polymer-ide could not trigger snippets


I have installed polymer-ide ext on vscode. I couldn't find a way to access snippets. For example how to triger/insert 'PolymerElement' kind of creation snip on an empty file.

Thanks


Solution

  • polymer-ide does not provide code snippets but rather provides only the following features:

    • typeahead completions for imported elements, with documentation
    • typeahead completions for element attributes, with documentation
    • inline errors (squiggle underlines)
    • jump to definition support for custom elements and attributes

    Instead, you might be interested in Polymer Snippets or Polymer 2 Snippets. For the Polymer Snippets, you could use the pe snippet in an empty *.html file to create a new Polymer element (by typing pe and then TAB). And for Polymer 2 Snippets, you could use p-webcomponent for a Polymer-2 equivalent.