Corey's ChatBot Intellij Plugin

Overview

The ChatBot plugin uses ChatGPT underneath the hood to assist you in all (okay, some) of your coding needs. You can interact with the ChatBot and ask it any questions you would like, even those not coding related. Additionally, you can fire intellij actions to Ask Chatbot about this code which will explain your highlighted block of code or Ask Chatbot to refactor this code which will offer up a refactor suggestion for your highlighted block of code.

Installation

  1. Download the plugin's zip file coreys-chatgpt-intellij-plugin-0.0.1.zip in the repository
  2. Go to your plugins planel in the settings modal

plugin panel 3. Click on the Gear Icon in the right most tab and select "Install Plugin from Disk..."

install from disk

  1. From there you can upload the downloaded zip file
  2. Confirm that you see the ChatBot Icon in the right panel and you are good to go!

panel icon

Setup

Now that the plugin is installed you need you add your ChatGPT api key

  • Navigate to the settings page at Tools -> ChatBot: ChatGpt Settings and paste in your api key from OpenAI
  • OPTIONAL: If you have a preferred model you would like to use, you can include it here. Otherwise ChatBot will use gpt-3.5-turbo by default

settings

Features

General Questions: Clicking on the ChatBot icon on the right side toolbar will open the ChatBot panel where you can have open dialog with the chatbot using the text field

open dialog

Ask ChatBot To Explain: You can highlight a block of code and open the actions window and type "Ask ChatBot To Explain". ChatBot will take the highlighted code and give its best explanation

explain action

Ask ChatBot To Refactor: You can highlight a block of code and open the actions window and type "Ask ChatBot To Refactor". ChatBot will take the highlighted code and respond with a refactored solution. You can use the "Replace Selection" button to replace your highlighted code with the refactored suggestion

refactor action


Plugin based on the IntelliJ Platform Plugin Template.