chatGPT-solution-generator-intellij-plugin

所属分类:GPT/ChatGPT
开发工具:kotlin
文件大小:0KB
下载次数:0
上传日期:2023-11-07 12:57:15
上 传 者sh-1993
说明:  该插件使用ChatGPT在IntelliJ IDEA中生成编程任务的解决方案
(The plugin generates solution for programming tasks right in IntelliJ IDEA using ChatGPT)

文件列表:
images/ (0, 2023-11-07)
images/1.png (619824, 2023-11-07)
images/2.png (97904, 2023-11-07)
images/3.png (230858, 2023-11-07)
images/4.2.png (48873, 2023-11-07)
images/5.2.png (110827, 2023-11-07)
images/6.2.png (107776, 2023-11-07)
images/7.2.png (181571, 2023-11-07)
images/8.2.png (152916, 2023-11-07)
images/9.2.png (242954, 2023-11-07)
solution-generator/ (0, 2023-11-07)
solution-generator/.idea/ (0, 2023-11-07)
solution-generator/.idea/codeStyles/ (0, 2023-11-07)
solution-generator/.idea/codeStyles/Project.xml (381, 2023-11-07)
solution-generator/.idea/codeStyles/codeStyleConfig.xml (142, 2023-11-07)
solution-generator/.idea/kotlinc.xml (176, 2023-11-07)
solution-generator/.idea/misc.xml (472, 2023-11-07)
solution-generator/.idea/vcs.xml (183, 2023-11-07)
solution-generator/.run/ (0, 2023-11-07)
solution-generator/.run/Run IDE with Plugin.run.xml (1120, 2023-11-07)
solution-generator/build.gradle.kts (1658, 2023-11-07)
solution-generator/gradle/ (0, 2023-11-07)
solution-generator/gradle/wrapper/ (0, 2023-11-07)
solution-generator/gradle/wrapper/gradle-wrapper.jar (60756, 2023-11-07)
solution-generator/gradle/wrapper/gradle-wrapper.properties (202, 2023-11-07)
solution-generator/gradlew (8070, 2023-11-07)
solution-generator/gradlew.bat (2763, 2023-11-07)
solution-generator/libs/ (0, 2023-11-07)
solution-generator/libs/MarkdownToHtml-1.0.jar (23287, 2023-11-07)
solution-generator/settings.gradle.kts (39, 2023-11-07)
solution-generator/src/ (0, 2023-11-07)
solution-generator/src/main/ (0, 2023-11-07)
solution-generator/src/main/kotlin/ (0, 2023-11-07)
solution-generator/src/main/kotlin/com/ (0, 2023-11-07)
solution-generator/src/main/kotlin/com/plugin/ (0, 2023-11-07)
solution-generator/src/main/kotlin/com/plugin/solutiongenerator/ (0, 2023-11-07)
... ...

# chatGPT-solution-generator-intellij-plugin The plugin generates solution for programming tasks using ChatGPT right in the IntelliJ IDEA. + [Usage](https://github.com/BagritsevichStepan/chatGPT-solution-generator-intellij-plugin/blob/master/#usage) + [Features](https://github.com/BagritsevichStepan/chatGPT-solution-generator-intellij-plugin/blob/master/#features) 1. [Detecting the programming language](https://github.com/BagritsevichStepan/chatGPT-solution-generator-intellij-plugin/blob/master/#detecting-the-programming-language) 2. [Markdown parser](https://github.com/BagritsevichStepan/chatGPT-solution-generator-intellij-plugin/blob/master/#markdown-parser) 3. [Splitting into lines](https://github.com/BagritsevichStepan/chatGPT-solution-generator-intellij-plugin/blob/master/#splitting-into-lines) 4. [Comments adding](https://github.com/BagritsevichStepan/chatGPT-solution-generator-intellij-plugin/blob/master/#comments-adding) ## Usage 1. First you enter your Open AI API token in __Preferences | Tools | ChatGPT Solution Generator__ and click __Apply__. To get your API token follow [this page](https://github.com/BagritsevichStepan/chatGPT-solution-generator-intellij-plugin/blob/master/https://elephas.app/blog/how-to-create-openai-api-keys-cl5c4f21d281431po7k8fgyol0) Preferences 2. Then you need to open any file in your IDEA, write there your task statement, highlight it and select **Tools | Generate Solution** or press `^+\` and `^+G` (on MacOs) Request 3. Then you got the answer from Chat GPT right in the Editor Response ## Features ### Detecting the programming language The plugin detects which programming language you are currently using (by your file extension) and asks Open AI to respond in this programming language. Thus, you don't need to write in the problem statement what programming language should be used: + **C++:** ![C++ request](https://github.com/BagritsevichStepan/chatGPT-solution-generator-intellij-plugin/blob/master//images/4.2.png) ![C++ response](https://github.com/BagritsevichStepan/chatGPT-solution-generator-intellij-plugin/blob/master//images/5.2.png) + **Kotlin:** ![Kotlin request](https://github.com/BagritsevichStepan/chatGPT-solution-generator-intellij-plugin/blob/master//images/6.2.png) ![Kotlin response](https://github.com/BagritsevichStepan/chatGPT-solution-generator-intellij-plugin/blob/master//images/7.2.png) ### Markdown parser The plugin gets a response from Chat GPT in Markdown. [My own library](https://github.com/BagritsevichStepan/chatGPT-solution-generator-intellij-plugin/blob/master/https://github.com/BagritsevichStepan/java-course/tree/main/MarkdownToHtml) parses the server response and inserts the response into the editor. ### Splitting into lines Аfter the response is processed by the Markdown-Parser, the plugin divides the response into lines according to the width of the user's screen. So that horizontal scrolling does not occur. The plugin does not separate lines that are part of the code blocks, so that the code stays correct. Also word transposition is taken into account. ### Comments adding Аfter splitting the plugin adds comments to the response lines that are not part of the code blocks. The plugin supports the comments syntax of many programming languages. + **HTML:** ![HTML request](https://github.com/BagritsevichStepan/chatGPT-solution-generator-intellij-plugin/blob/master//images/8.2.png) ![HTML response](https://github.com/BagritsevichStepan/chatGPT-solution-generator-intellij-plugin/blob/master//images/9.2.png)

近期下载者

相关文件


收藏者