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.
To use Go AI Comment, you'll need to install it as a plugin in your IntelliJ editor (Goland). Here are the steps:
- Go to
Settings
->Plugins
->Marketplace
in your IntelliJ editor. - Search for "Go AI Comment" and click on the
Install
button. - Once the plugin is installed, restart IntelliJ IDEA editor to activate it.
- Retrieve your ChatGPT API key from OpenAI.
- Set the API Key in
Settings
->Tools
->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.
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.
Go AI Comment is licensed under the MIT License. See the LICENSE
file for more information.
If you have any questions or feedback about Go AI Comment, please feel free to contact us at y.alhyane@gmail.com