Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Alaanor/candid-intellij-plugin

A Candid language plugin that provide a complete support to efficiently edit .did files.
https://github.com/Alaanor/candid-intellij-plugin

Last synced: 5 days ago
JSON representation

A Candid language plugin that provide a complete support to efficiently edit .did files.

Awesome Lists containing this project

README

        





Build
Version
Downloads

# IntelliJ Candid Language Plugin

A [Candid](https://github.com/dfinity/candid) language plugin that provide a complete support to efficiently edit `.did` files. [Candid](https://github.com/dfinity/candid) is an interface description language (IDL) for interacting with canisters (also known as services or actors) running on the [Internet Computer](https://internetcomputer.org/).

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`:

```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](https://github.com/Alaanor/candid-intellij-plugin/releases/latest) and install it manually using
Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...