Skip to content

Commit b99aa80

Browse files
committed
Update README.md
1 parent 9ec72a3 commit b99aa80

File tree

1 file changed

+64
-2
lines changed

1 file changed

+64
-2
lines changed

README.md

Lines changed: 64 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,64 @@
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+
![action.png](images/action.png)
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+
![quickfix.png](images/quickfix.png)
36+
- Checking for Dao method arguments not used in bind variables
37+
![inspection.png](images/inspection.png)
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+
![complete_bindVariables.png](images/complete_bindVariables.png)
44+
- Refer to class definition from Dao method argument type and suggest fields and methods
45+
![complete_member.png](images/cpmplete_member.png)
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+
![setting_highlight.png](images/setting_highlight.png)
64+
- Customize action shortcut keys

0 commit comments

Comments
 (0)