/intellij-aicoder

Coding tools for Intellij using the OpenAI API

Primary LanguageJava

intellij-aicoder

Build Version Downloads

Ahoy, mateys! This plugin be a powerful tool fer yer coding needs. It be adding some editor context menu options that be providing text processing functions powered by OpenAI's GPT models.

Supported languages include Java, C++, C#, JavaScript, Python, Ruby, PHP, Go, Perl, R, Swift, SQL, HTML, CSS, TypeScript, Kotlin, Dart, Rust, Scala, Assembly, Ada, Basic, COBOL, Clojure, Delphi, Erlang, Elixir, FORTRAN, F#, Groovy, Haskell, Julia, Lisp, Logo, MATLAB, OCaml, Pascal, Prolog, Racket, Smalltalk, Tcl, and Visual Basic.

Features:

  • Automatic code commenting and documentation
  • Code generation based on plain-text requirements, with context awareness
  • Directive-based code editing
  • Custom styles (e.g. write like a pirate!)

To use, simply access the context menu within any editor window and view the options under "AI Coder".

Ye need yer own OpenAPI access token fer this plugin. This be intended as a development tool fer developers who already have an OpenAI access token; it be not itself to be considered an end-product. This plugin be provided free of charge and without any guarantee. So what be ye waitin' fer? Get yer hands on this plugin now!

Installation

  • Using IDE built-in plugin system:

    Settings/Preferences > Plugins > Marketplace > Search for "intellij-aicoder" > Install Plugin

  • Manually:

    Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...

Usage

After installation, edit the settings and add your API key. If desired, customize your style! aicoder_settings.png

Use the context menu to access features. In this example, we use the "Insert Implementation" tool. Note: After inserting, the code needs reformatting and some manual cleanup (e.g. correcting additional ending braces) aicoder_implement.png

After reviewing the code, we can easily add documentation. aicoder_adddocs.png

aicoder_final.png

We can also iterate and use the AI to refactor the code using custom edits: aicoder_edit.png

aicoder_editresult.png


Plugin based on the IntelliJ Platform Plugin Template.