Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Stencil ToolsNew to Visual Studio Code? Get it now.
Stencil Tools

Stencil Tools

Nate Moore

|
9,773 installs
| (2) | Free
Helpful utilities for StencilJS Projects
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Version Installs

Stencil Tools

This repository will be archived after the upcoming 3.0.0 release.

Active development can be found in the Stencil Tools monorepo, which contains the Stencil Tools suite, which adds support for editors other than VS Code, zero-config component generation, intelligent editor features, and more.

Description

VS Code extension that makes working with Stencil projects a breeze.

Features

  • Automatically creates Stencil components (component.tsx, component.spec.tsx, component.css)
  • Snippets with Automatic Import support for Stencil Decorators, Lifecycle Events, and Tests
  • Easily start any new Stencil project from the Command Palette
  • Quickly open the Stencil Docs in your browser
  • Configurable component templates
    • Add a custom prefix to generated component tags
    • Easily toggle on/off @Component({ shadow: true })
    • Change the extension of any generated file
      • css => scss or sass
      • spec.ts => test.ts

Usage

Generate a Component

New Component

  • From the File Explorer
    • Right click on a folder
    • Select "Generate Stencil Component"
    • Enter your component name in the prompt
  • From the Command Palette
    • Select "> Stencil: New Component"
    • Enter your component name in the prompt

Generate a Test from a Component

  • From the File Explorer
    • Right click on a component file
    • Select "Generate Test for Stencil Component"
  • From the Command Palette, when a Component is open
    • Select "> Stencil: New Test for Component"

Start a Stencil Project

Start a Project

  • From the Command Palette
    • Select "> Stencil: Start New Project"
    • Select a Starter (components, app, pwa)
    • Choose an empty directory and click "Start Project"
    • When you open the new project, Stencil Tools will automatically prepare the project and install any dependencies

Use Stencil Snippets

Use Snippets

  • From a Component File
    • type s- and select your snippet

Open the Stencil Docs

Open Docs

  • From the Command Palette
    • Select "> Stencil: Open Docs"

Changelog

2.1.0 (2019-12-30)

  • Updated component.ts and component.e2e.ts templates to match @stencil/core@one defaults.

2.0.0 (2018-06-11)

  • Breaking Change: command names are now properly namespaced
  • Overhaul of the Start Project feature
  • Brand new snippets with AutoImport
  • Small optimizations to the Component and Test Generators
  • Read More

1.0.0 (2018-06-06)

  • Published the extension to VS Code Marketplace

Bugs

Please report here

Credits

  • vscode-angular2-component-generator for the original fork
  • create-stencil for much of the Start Project logic
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft