I will expose the settings of Intellij IDEA that I personally recommend.
How to open the settings dialog
--For Windows or Linux Select File
>Settings ...
--For MacOS ʻIntelliJ IDEA> Select
Preferences ...`
The following settings are made in this dialog
By default, files that have changed in Git are displayed in color. (↓ The changed file is blue. Subtly.)
With this setting, the parent directory of the changed file will also be displayed in color.
Version Control
Check Show directories with changed descendants
It automatically downloads the dependent libraries defined in Maven and Gradle's dependencies
and makes them ready for use.
Build, Execution, Deployment
> Build Tools
> Maven
> Importing
Check ʻImport Maven project automatically`
Build, Execution, Deployment
> Build Tools
> Gradle
ʻCheck Use auto-import`
Set to automatically add necessary import statements when editing Java class
Editor
> General
> Auto Import
Check ʻAdd unambiguous imports on the fly Check ʻOptimize imports on the fly
Intellij folds and hides import statements etc. by default
Since it is troublesome to open the folds one by one due to personal preference, I set it to display without folding.
Editor
> General
> Code Folding
Uncheck all the Collapse by default:
checkboxes
"
"or" {
"with the text selectedIf you do this setting,
For example, if you enter "
with text selected like ↓ ...
The selection will be surrounded by "
. It's convenient.
Editor
> General
> Smart Keys
Check Surround selection on typing quote or brace
If you select ʻUse MySQL` when it appears like this, Intellij will recognize it as MySQL SQL and will do completion, formatting, syntax error display, etc.
It is troublesome to select one file at a time, so the method to set for the entire project is ↓.
Preferences
> Languages & Frameworks
> SQL Dialects
Select "MySQL" for Global SQL Dialects
or Project SQL Dialects
When developing as a team, it is not good that there is a difference due to indentation etc., so I think it is better to use a formatter without asking questions.
Save Actions
plugin>
Save Actions` as ↓Increase the heap size to make Intellij work lighter.
Help
> ʻEdit Custom VM Options ...`does not exist, you will be asked if you want to create it, so select
Create`.Example:
-Xms256m
-Xmx1500m
Recommended Posts