|
1 | | -# doma-tools-for-intellij |
2 | | -Doma Tools for IntelliJ IDEA |
| 1 | +# Doma Tools for IntelliJ |
| 2 | + |
| 3 | +<!-- Plugin description --> |
| 4 | +“Doma Tools” is a plugin that supports the development of Doma-based projects in IntelliJ. |
| 5 | + |
| 6 | +It checks associations between Dao and SQL, and offers coding support features for Doma syntax, |
| 7 | +such as generating SQL template files, navigating between files, and inspections to ensure the validity of bind variables. |
| 8 | +<!-- Plugin description end --> |
| 9 | + |
| 10 | +## Features |
| 11 | + |
| 12 | +## Actions |
| 13 | +The plugin adds some actions, gutter icons. |
| 14 | +Shortcut keys can be used for actions |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | +- **Jump to SQL(Alt+D)** |
| 19 | + - Jump to action from Dao to SQL |
| 20 | + - You can also jump to the SQL file from the gutter icon that is displayed together. |
| 21 | +- **Generate SQL(Ctrl+Alt+G)** |
| 22 | + - Generate SQL file |
| 23 | +- **Jump to Dao(Alt+D)** |
| 24 | + - Jump to action from SQL to Dao |
| 25 | + - You can also jump to the Dao Method from the gutter icon that is displayed together. |
| 26 | +- **Jump to Declaration(Alt+E)** |
| 27 | + - Jump to action from SQL bind variable to declaration location |
| 28 | + - ex: Dao arguments, fields, method declaration |
| 29 | + |
| 30 | +## Inspection |
| 31 | +Check that bind variables are used appropriately for Dao and SQL associations. |
| 32 | +The plugin also provides quick fixes for Dao methods where the required SQL files do not exist. |
| 33 | + |
| 34 | +- Quick fix for missing SQL template file |
| 35 | +  |
| 36 | +- Checking for Dao method arguments not used in bind variables |
| 37 | +  |
| 38 | + |
| 39 | +## Completion |
| 40 | +Adds code completion functionality to support indexing of Doma directives and bind variables |
| 41 | + |
| 42 | +- Suggest Dao method arguments in bind variable directives |
| 43 | +  |
| 44 | +- Refer to class definition from Dao method argument type and suggest fields and methods |
| 45 | +  |
| 46 | +- Suggest members defined as static in static fields and method calls |
| 47 | +- Suggest Doma directives |
| 48 | +- Directives such as Condition, Loop, Population are suggested after “%” |
| 49 | +- Suggest built-in functions after “@” |
| 50 | + |
| 51 | +## Refactoring |
| 52 | +Along with the Dao name change, we will refactor the SQL file directory and file name. |
| 53 | + |
| 54 | +- After refactoring the Dao name, change the SQL deployment directory name as well. |
| 55 | +- After refactoring the Dao method name, we will also change the SQL file name. |
| 56 | +- After refactoring the Dao package, we will also change the SQL directory. |
| 57 | + |
| 58 | +## Settings |
| 59 | +Some functions of "Doma Tools" can be customized from the settings screen. |
| 60 | + |
| 61 | +- Enabling/disabling inspections and customizing error levels |
| 62 | +- Highlight color settings for SQL elements |
| 63 | + |
| 64 | +- Customize action shortcut keys |
0 commit comments