IntelliJ Candid Language Plugin
A Candid language plugin that provide a complete support to efficiently edit .did
files. Candid is an interface description language (IDL) for interacting with canisters (also known as services or actors) running on the Internet Computer.
Features supported so far:
-
💡 Syntax Highlighting -
⌨️ Auto Completion -
🔍 Find Usage -
💄 Code Format -
🦀 Rust integration
🦀
Rust integration
For the sake of correctness, the plugin will only enable rust integration for a given candid file if the followings are found in dfx.json
:
{
"canisters": {
"foobar-canister": {
"type": "rust",
"candid": "correct/path/to/candid-file.did",
"package": "rust-package-name"
}
}
}
All three type
, candid
and package
fields are required to enable rust integration. dfx.json
is expected to be found at the root of the project. The type custom
will not be supported because of the lack of explicit information that the plugin require to correctly resolve items.
Installation
- Using IDE built-in plug system: Settings/Preferences > Plugins > Marketplace > Search for "Candid" > Install Plugin
- Manually: Download the latest release and install it manually using Settings/Preferences > Plugins >
⚙️ > Install plugin from disk...