Idea定制

插件

  • GitToolBox

  • CamelCase

  • .ignore

  • GsonFormat

  • Markdown support

  • GO

  • Lombok plugin

  • Swagger Tools

  • Mybatisx

  • MybatisPlus

  • AceJump

  • Key promoter X

  • Alibaba Java Coding Guidelines

  • Database navigator

  • Rainbow Brackets

  • Past Images into Markdown

  • Free mybatis plugin

  • Packages

  • https://www.hollischuang.com/archives/3220

THEME

solarized

取消折叠代码

Settings | Editor | General | Code Folding

set author and date

Settings -> Editor -> File and code templates -> Includes -> File Header

1
2
3
4
/**
* @author ${USER}
* @date ${YEAR}/${MONTH}/${DAY}
*/

配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<keymap version="1" name="louva" parent="Default for XWin">
<action id="$Copy">
<keyboard-shortcut first-keystroke="ctrl c" />
<keyboard-shortcut first-keystroke="ctrl insert" />
<keyboard-shortcut first-keystroke="alt c" />
</action>
<action id="$Cut">
<keyboard-shortcut first-keystroke="ctrl x" />
<keyboard-shortcut first-keystroke="shift delete" />
<keyboard-shortcut first-keystroke="alt x" />
</action>
<action id="$Delete">
<keyboard-shortcut first-keystroke="delete" />
<keyboard-shortcut first-keystroke="alt quote" />
</action>
<action id="$Paste">
<keyboard-shortcut first-keystroke="ctrl v" />
<keyboard-shortcut first-keystroke="shift insert" />
<keyboard-shortcut first-keystroke="alt v" />
</action>
<action id="ActivateRunToolWindow">
<keyboard-shortcut first-keystroke="alt r" />
</action>
<action id="CloseContent">
<keyboard-shortcut first-keystroke="ctrl f4" />
<keyboard-shortcut first-keystroke="shift alt w" />
</action>
<action id="CodeInspection.OnEditor" />
<action id="Console.Execute" />
<action id="Editor Copy">
<keyboard-shortcut first-keystroke="alt c" />
</action>
<action id="Editor Cut">
<keyboard-shortcut first-keystroke="alt x" />
</action>
<action id="Editor Delete">
<keyboard-shortcut first-keystroke="alt quote" />
</action>
<action id="Editor Paste">
<keyboard-shortcut first-keystroke="alt v" />
</action>
<action id="EditorDown">
<keyboard-shortcut first-keystroke="down" />
<keyboard-shortcut first-keystroke="alt comma" />
</action>
<action id="EditorDownWithSelection">
<keyboard-shortcut first-keystroke="shift down" />
<keyboard-shortcut first-keystroke="shift alt comma" />
</action>
<action id="EditorLeft">
<keyboard-shortcut first-keystroke="left" />
<keyboard-shortcut first-keystroke="alt h" />
</action>
<action id="EditorLeftWithSelection">
<keyboard-shortcut first-keystroke="shift left" />
<keyboard-shortcut first-keystroke="shift alt h" />
</action>
<action id="EditorLineEnd">
<keyboard-shortcut first-keystroke="end" />
<keyboard-shortcut first-keystroke="alt 4" />
</action>
<action id="EditorLineEndWithSelection">
<keyboard-shortcut first-keystroke="shift end" />
<keyboard-shortcut first-keystroke="shift alt 4" />
</action>
<action id="EditorLineStart">
<keyboard-shortcut first-keystroke="home" />
<keyboard-shortcut first-keystroke="alt 0" />
</action>
<action id="EditorLineStartWithSelection">
<keyboard-shortcut first-keystroke="shift home" />
<keyboard-shortcut first-keystroke="shift alt 0" />
</action>
<action id="EditorNextWordWithSelection">
<keyboard-shortcut first-keystroke="shift ctrl right" />
<keyboard-shortcut first-keystroke="shift ctrl alt l" />
</action>
<action id="EditorPreviousWordWithSelection">
<keyboard-shortcut first-keystroke="shift ctrl left" />
<keyboard-shortcut first-keystroke="shift ctrl alt h" />
</action>
<action id="EditorRight">
<keyboard-shortcut first-keystroke="right" />
<keyboard-shortcut first-keystroke="alt l" />
</action>
<action id="EditorRightWithSelection">
<keyboard-shortcut first-keystroke="shift right" />
<keyboard-shortcut first-keystroke="shift alt l" />
</action>
<action id="EditorSelectWord">
<keyboard-shortcut first-keystroke="ctrl w" />
<keyboard-shortcut first-keystroke="alt w" />
</action>
<action id="EditorUp">
<keyboard-shortcut first-keystroke="up" />
<keyboard-shortcut first-keystroke="alt i" />
</action>
<action id="EditorUpWithSelection">
<keyboard-shortcut first-keystroke="shift up" />
<keyboard-shortcut first-keystroke="shift alt i" />
</action>
<action id="NextSplitter">
<keyboard-shortcut first-keystroke="shift alt n" />
</action>
<action id="NextTab">
<keyboard-shortcut first-keystroke="alt right" />
<keyboard-shortcut first-keystroke="alt equals" />
</action>
<action id="PopupHector" />
<action id="PrevSplitter">
<keyboard-shortcut first-keystroke="shift alt p" />
</action>
<action id="PreviousTab">
<keyboard-shortcut first-keystroke="alt left" />
<keyboard-shortcut first-keystroke="alt minus" />
</action>
<action id="ShowReformatFileDialog" />
<action id="Annotate">
<keyboard-shortcut first-keystroke="ctrl alt 0" />
</action>
<action id="SplitHorizontally">
<keyboard-shortcut first-keystroke="shift alt o" />
</action>
<action id="SplitVertically">
<keyboard-shortcut first-keystroke="shift alt e" />
</action>
<action id="TabShiftActions.ShiftUp" />
<action id="hg4idea.QPushAction" />
</keymap>

IntelliJ IDEA: change open with (associated application) preference - Stack Overflow

java doc 不自动格式化

1
2
3
4
5
6
7
8
9
10
/**
// @formatter:off
{
"a":"b"
}
// @formatter:on
*/
public void name() {

}

激活 spring 环境

1
-Dspring.profiles.active=dev

202201270913347

Live Templates

1
2
3
4
5
6
7
8
9
10
11
logd
log.info("[$CLASS_NAME$#$METHOD_NAME$]: $END$");

logi
log.info("[$CLASS_NAME$#$METHOD_NAME$]: $END$");

logw
log.warn("[$CLASS_NAME$#$METHOD_NAME$]: $END$", e);

loge
log.error("[$CLASS_NAME$#$METHOD_NAME$]: $END$", e);