Skip to content

kcl-lang/intellij-kcl

Repository files navigation

GitHub Actions Workflow Status JetBrains Plugin Version

KCL Plugin for IntelliJ IDEA

The KCL IntelliJ IDEA plugin provides rich language support for the KCL language.

Quick Start

Welcome to KCL developing! We hope this plugin enhances your development experience with KCL.

  • Step 1. Install KCL on your system.

  • Step 2. Install the KCL plugin for IntelliJ IDEA in Marketplace. Preference -> plugins -> Marketplace -> search KCL -> install -> restart IDE.

  • Step 3. Open or create a KCL file and begin your KCL tour!

Features

This extension provides many coding assistance based on Language Server Protocol.

  • Highlight: Syntax and semantic highlight
  • Completion: Completion for keywords, variable name, attributes and more
  • Goto definition: Goto definition of schema, variable, schema attribute, and import pkg
  • Structure: Main definition(schema def) and variables in KCL file
  • Hover: Identifier information (type and schema documentation)
  • Diagnostics: Warnings and errors in KCL file
  • Code Action: Quick fix for some errors
  • InlayHint: Hint for variable type, function and schema args

image

Other useful features such as diagnostics and testing are in developing.

Requirements

  • Intellij IDEA 2023.2 or more recent
  • Java JDK (or JRE) 17 or more recent

Ask for help

If the plugin isn't working as you expect, please reach out to us by filing an issue.

Contributing

We are working actively on improving the KCL development on IntelliJ IDEA, and we welcome all kinds of contributions. You can refer to our contribution guide. It introduces how to build and run the extension locally.

License

Apache License Version 2.0