IntelliJ IDEA
Quick Start
Step 1. Install KCL on your system. Please ensure that
kcl
andkcl-language-server
are installed and added to your PATH: On MacOS and Linux:which kcl
which kcl-language-serverOn Windows:
where kcl
where kcl-language-serverStep 2. Install the KCL plugin from the Jetbrains Plugins Marketplace.
Step 3. Reopen IntelliJ IDEA, create a KCL file, and begin your KCL journey!
Features
This extension provides comprehensive coding assistance based on the Language Server Protocol.
- Highlighting: Syntax and semantic highlighting
- Code Completion: Completion for keywords, variable names, attributes, and more
- Goto definition: Navigate to the definition of schema, variables, schema attributes, and imported packages
- Structure: View the main definition (schema definition) and variables in KCL files
- Hover: View identifier information (type and schema documentation)
- Diagnostics: Detect warnings and errors in KCL files
- Code Action: Quick fix for some errors
- InlayHint: Display hints for variable type, functions, and schema arguments
- Format: Format a KCL file or snippet code
Other useful features such as diagnostics and testing are under development.
Dependencies
We recommend using the latest version of KCL, but the minimum required version for this extension is 0.4.6. If you are using an earlier version, the extension may not work properly.
The minimum required version for IntelliJ IDEA is 2022.1.
Known Issues
See here.
Ask for help
If the extension does not behave as expected, please reach out to us through the community for assistance.
Contributing
We are actively working to enhance KCL development on VS Code. We welcome all types of contributions. You can consult our contribution guide, which explains how to build and run the extension locally and describes the contribution process.
License
Apache License 2.0