Svelte IDE插件(IntelliJ IDEA)

WebStorm 中的 Svelte 组件及其朋友们。「Svelte components in WebStorm and friends」

Github星跟踪图

Build
Version
Downloads
Twitter Follow

Support for Svelte in your IDE of choice.

Features

  • Syntax highlighting
  • Code formatting
  • Typing assistance
  • Emmet-style abbreviations of Svelte blocks
  • Completions of components, props and some directives
  • Auto import of components
  • Navigation from components to their definition
  • Debugger integration

Installation

  • Using IDE built-in plugin system:

    Settings/Preferences > Plugins > Marketplace > Search for "Svelte" >
    Install Plugin

  • Manually:

    Download the latest release and install it manually using
    Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...

Compatible IDEs

Works in JavaScript-enabled JetBrains IDEs. Information about version compatibility and older releases is available in version history.

Contributing

Contributions are very much welcome!

IntelliJ Platform runs on JVM, yet Kotlin feels a lot like TypeScript. IntelliJ Platform SDK documentation is a good starting point.

Building and running the plugin

You'll need IntelliJ IDEA. The Community Edition is free and sufficient, you can also use Ultimate edition if you have one.

Clone the repository and run ./gradlew runIde (There are also intermediate tasks).

IntelliJ Ultimate will download in a bit, and you'll be prompted with license dialog - choose evaluation mode.

Ready to share .zip archive can be found in build/distributions after running ./gradlew buildPlugin.

Running tests

Tests can be run with ./gradlew test command or even better or by using run action in IntelliJ IDEA.

Writing Tests

Some tests in IntelliJ Platform are similar to Jest snapshots.

You need to create a .svelte file in scr/test/resources directory and add function composed of the word test and file name to appropriate class.
When running test for the first time, file with expected results will be created, please commit it. When updating test, simply delete snapshot file and rerun test.

主要指标

概览
名称与所有者tomblachut/svelte-intellij
主编程语言JavaScript
编程语言Lex (语言数: 8)
平台
许可证MIT License
所有者活动
创建于2019-05-03 21:19:23
推送于2025-07-23 16:51:16
最后一次提交2025-07-23 15:55:31
发布数378
最新版本名称pycharm/252.23309.36 (发布于 )
第一版名称v0.5.0 (发布于 )
用户参与
星数510
关注者数18
派生数41
提交数1k
已启用问题?
问题数0
打开的问题数0
拉请求数76
打开的拉请求数0
关闭的拉请求数18
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?