Skip to content

gnoverse/intellij-gno

Repository files navigation

Gno IntelliJ Plugin

This is an IntelliJ plugin that adds support for the Gno programming language. It allows IntelliJ to recognize .gno files and provides basic functionality for working with Gno files in the IDE.

Features

  • Basic file recognition for Gno files
  • Integration with IntelliJ IDEA
image

To Implement

  • Syntax highlighting for .gno files
  • Code completion for Gno keywords
  • Code formatting for Gno files
  • Error highlighting and code analysis
  • Navigation support

Installation

To install this plugin in IntelliJ IDEA, follow these steps:

  1. Clone this repository to your local machine:

    git clone https://github.com/gnolang/intellij-gno.git
  2. Open the project in IntelliJ IDEA.

  3. Build the plugin with Gradle:

    ./gradlew build
  4. After building, you can install the plugin by following these steps:

    • Go to File > Settings > Plugins.
    • Click on the gear icon ⚙️ and select Install Plugin from Disk.
    • Navigate to the build/distributions directory and select the .zip file generated by the build.
  5. Restart IntelliJ IDEA to activate the plugin.

Usage

Once the plugin is installed, IntelliJ IDEA will automatically recognize .gno files. You can create new .gno files or open existing ones, and the plugin will provide syntax highlighting and basic language support.

Create a New Gno File

  1. Right-click on a directory in the Project view.
  2. Select New > File.
  3. Name your file with a .gno extension (e.g., myfile.gno).
  4. Start writing your Gno code!

Development

To contribute or modify this plugin, follow these steps:

  1. Fork the repository and clone it:

    git clone https://github.com/gnolang/intellij-gno.git
  2. Open the project in IntelliJ IDEA.

  3. Make sure you have the required dependencies installed by running:

    ./gradlew build
  4. Run the plugin in a sandbox environment:

    ./gradlew runIde

This will launch a new instance of IntelliJ IDEA with the plugin loaded in a sandbox environment for testing.

Building the Plugin

To build the plugin for distribution, use the following command:

./gradlew buildPlugin

The generated plugin file will be located in the build/distributions directory as a .zip file, which can be shared or uploaded to the JetBrains Plugin Repository.

Contributing

Contributions are welcome! ✌🏼

License

This project is licensed under the APACHE License. See the LICENSE file for more details.

Releases

No releases published

Packages

No packages published

Languages