#IDE

Your 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
  }
}

How to set up:

  1. File > Preferences > Settings
  2. click on "..." > Open settings.json

VSCodeSettings

#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

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

#Intellij IDEA and other Jetbrains variants

Another possible alternative for development is IntelliJ IDEA. IntelliJ is a Java integrated development environment (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 components related functionalitites 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

Officially called a text editor Sublime Text features plugins which give it a lot of the possibilities of the IDE's listed above. It is available for Windows, Linux and OSX and can be evaluated for free.