Skip to content

yalhyane/go-ai-comment-intellij-plugin

Repository files navigation

Go AI Comment

GO AI Comment is an IntelliJ IDEA plugin that helps generate documentation comments for your code using AI. It can automatically generate a doc comment for the current function you're working on, or generate a summarized comment for a selected block of code.

Getting Started

To use Go AI Comment, you'll need to install it as a plugin in your IntelliJ editor (Goland). Here are the steps:

  1. Go to Settings -> Plugins -> Marketplace in your IntelliJ editor.
  2. Search for "Go AI Comment" and click on the Install button.
  3. Once the plugin is installed, restart IntelliJ IDEA editor to activate it.
  4. Retrieve your ChatGPT API key from OpenAI.
  5. Set the API Key in Settings -> Tools -> AI Comment

Using Go AI Comment

AI Comment provides two main features:

✅ Generate doc comment for Current function.
✅ Generate summarized comment for selected block of code.

To generate an AI comment, simply place your cursor inside a function or select a block for which you want to generate a comment, or select a block of code, then Go to Code -> Generate or Press Ctrl + N (or Cmd + N on a Mac) and select Generate Ai Comment from the menu.
The plugin will then use AI to generate a comment for your function or your block of code.

Contributing

If you'd like to contribute to Go AI Comment, please feel free to submit a pull request. We welcome contributions of all types, from bug fixes to new features.

License

Go AI Comment is licensed under the MIT License. See the LICENSE file for more information.

Contact

If you have any questions or feedback about Go AI Comment, please feel free to contact us at [email protected]

About

Intellij plugin to generate function documentation using AI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages