Skip to content

Commit

Permalink
Change README.md and add LICENSE
Browse files Browse the repository at this point in the history
  • Loading branch information
onewhl committed Apr 17, 2024
1 parent 09af9e6 commit fa4afcf
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 9 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 JetBrains-Research

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
26 changes: 17 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,21 @@ samples in the [IntelliJ Platform SDK Code Samples repository](https://github.co

Available `Run configurations` can be found in `Gradle``Run Configurations`:

- `Build Plugin`: Runs [`:buildPlugin`][gh:gradle-intellij-plugin-buildPlugin] task. Build the plugin and saves `.zip`
- `Build Plugin`:
Runs [`:buildPlugin`](https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#tasks-buildplugin)
task. Build the plugin and saves `.zip`
archive with
it in `build/distributions` folder.
- `Run Plugin`: Runs [`:runIde`][gh:gradle-intellij-plugin-runIde] task. Use the *Debug* icon for plugin debugging.
- `Run Qodana`: Runs [`:runInspections`][gh:gradle-qodana-plugin] task. Starts Qodana inspections in a Docker container
- `Run Plugin`:
Runs [`:runIde`](https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#tasks-runide) task. Use
the *Debug* icon for plugin debugging.
- `Run Qodana`: Runs [`:runInspections`](https://github.com/JetBrains/gradle-qodana-plugin) task. Starts Qodana
inspections in a Docker container
and serves a generated report on `localhost:8080`.
- `Run Tests`: Runs [`:test`][gradle:lifecycle-tasks] task.
- `Run Verifications`: Runs [`:runPluginVerifier`][gh:gradle-intellij-plugin-runPluginVerifier] task to check the plugin
- `Run Tests`: Runs [`:test`](https://docs.gradle.org/current/userguide/java_plugin.html#lifecycle_tasks) task.
- `Run Verifications`:
Runs [`:runPluginVerifier`](https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#tasks-runpluginverifier)
task to check the plugin
compatibility against the specified IntelliJ IDEs.

## How to install
Expand All @@ -32,21 +39,22 @@ To install the plugin:

1. Open IntelliJ IDEA and go to `File`/`Settings`/`Plugins`
2. Select the gear icon, and choose `Install Plugin from Disk...`
3. Choose the ZIP archive `ide-workshop-tutorial-1.0.zip`
3. Choose the ZIP archive `ide-workshop-tutorial-0.0.1.zip`
4. Click `Apply`
5. Restart the IDE

The plugin requires OpenAI API key. You need to configure `OPENAI_API_KEY` in environment variables on your laptop.

## How to use

The plugin requires OpenAI API key. You need to configure `OPENAI_API_KEY` in environment variables on your laptop.

Place the caret at the function name, click the light bulb icon (or press `⌥ Opt ↩ Enter`), and
select `Generate function name` action in the list to generate function name
suggestions.

When a list of suggestions appears, click on any name in the list, and the plugin will perform an automatic rename
method refactoring.

![](https://github.com/JetBrains-Research/ide-workshop-tutorial/gif/plugin-demo.gif)
<img src="gif/plugin-demo.gif" alt="Intention action" width="70%" style='border:1px solid #000000'/>

## Contacts

Expand Down
Binary file added ide-workshop-tutorial-0.0.1.zip
Binary file not shown.

0 comments on commit fa4afcf

Please sign in to comment.