/svelte-intellij

Provides syntax highlighting of Svelte components in WebStorm and friends

Primary LanguageKotlinMIT LicenseMIT

logo of svelte-intellij repository

svelte-intellij

Support for Svelte in your IDE of choice. Works in JetBrains products that support JavaScript.

Work in progress, pretty usable already.

Installation

Features

  • Syntax highlighting
  • Code formatting
  • Typing assistance
  • Partial completion suggestions
  • Navigation from components to their definition

Known issues

  • Component imports are marked as unused
  • $ subscriptions aren't recognised properly
  • Props completion and validation isn't provided
  • Directives are treated as plain attributes
  • ...

Support

This project is run by one person, because I want Svelte to succeed. Please, leave a star and spread the word.

Contributing

Contributions are very much welcome!

IntelliJ Platform runs on JVM, so this can seem like a huge limitation, but don't worry. Kotlin looks a lot like TypeScript. Bigger issue is scarce documentation for their API. I'll write a few words describing it some day.

If you don't know how to write IntelliJ plugins, please report what could be improved. IntelliJ has a huge feature set, I personally don't use everything it has to offer.