Weex Language Support Plugin#
Weex Language Support is a official tools to code highlight, automatic completion，lint and other functions in IDEA, WebStorm or the others IDEs.
You can install and use this plugin on the following IDEs on any operating system:
IntelliJ IDEA Ultimate, PhpStorm, WebStorm, PyCharm, RubyMine, AppCode, CLion, Gogland, Rider
Just searching the
Weex Language Support in plugin repo to install, next you need restart IDE to enable it.
Preferences -> Other Settings -> Weex language support to configuration plugin
- Target Weex Version: Config the version of Weex that your current project in use, default is
LATEST, it means always using the latest version
- Vue Support: Config whether to support Vue, you need to restart IDE after turning on or off the set to take effect
- Custom Rules: Import the custom Weex DSL rules, The format of the custom rules will be listed later
- Global Weex Components: Sets the location of the module that is applied in the project, in particular, the
node_modulesdirectory in current project and npm root will be automatically included, you do not need to add them here
Format of Custom DSL Rules#
Custom rules are included in a json file, the root node of the json file is an array, each element in the array corresponds to a label in the DSL.
Let’s take the example of the
Please commiting Issues and Pull Requests into the weex-language-support project