O with occluded right edge to appear also as a C Open Web Components Guides Docs Blog

Tools: IDE

Your integrated development environment (IDE) is your primary tool while working with code, we recommend the following tools and plugins to make developing web components easier.

Visual Studio Code

We recommend VSCode. For setup please visit the instructions on the Visual Studio Code homepage.

Configuration

We recommend the following user settings:

{
  "files.autoSave": "onWindowChange",
  "editor.tabSize": 2,
  "files.trimTrailingWhitespace": true,
  "[markdown]": {
    "files.trimTrailingWhitespace": false
  }
}

Plugins

We recommend the following plugins:

  • ESLint Get ESLint feedback directly in your IDE => more details under Linting
  • lit-plugin Syntax highlighting, type checking and code completion for lit-html
  • prettier Code formatter.

Atom

Atom is an IDE created by Github. It provides near-native support for working with web components and has great support for template literals.

Plugins

Intellij IDEA and other Jetbrains variants

Intellij IDEA is a Java IDE for developing computer software. It is developed by JetBrains (formerly known as IntelliJ) and is available as an Apache 2 Licensed community edition and in a proprietary commercial edition.

Syntax highlighting from HTML and CSS in template literals should be supported out of the box. Generic web component related functionalities such as Custom Elements support and completion is also available. You can read more about it here.

intellij-syntax0-highlighting

Due to the support available directly in the IDE, the ecosystem for plugins is very limited and we do not recommend any.

Sublime Text 3

Sublime Text 3 is officially called a text editor however Sublime Text features plugins which give it a lot of the possibilities like an IDE. It is available for Windows, Linux, and OSX and can be evaluated for free.

Plugins