... | ... | @@ -57,4 +57,8 @@ Similarly, you can create a script at `.git/hooks/pre-commit` to check the codin |
|
|
|
|
|
The linter requires every file to end with a line break. IntelliJ doesn't add those by default, so to force it to do that, enable the following setting:
|
|
|
|
|
|
`Settings` → `Editor` → `General` → `On Save` → `Ensure every saved file ends with a line break` |
|
|
\ No newline at end of file |
|
|
`Settings` → `Editor` → `General` → `On Save` → `Ensure every saved file ends with a line break`
|
|
|
|
|
|
## Save Actions Plugin
|
|
|
|
|
|
Speaking about performing things during saving, the Save Actions Plugin can be installed into IntelliJ and configured to Optimize imports and reformat files on save. It can be downloaded via the Plugins section in the Settings screen. Once installed, there's a separate configuration item in the Settings navigation for Save Actions and one needs to activate save actions, and enable "Optimize imports" and "Reformat file". |
|
|
\ No newline at end of file |