SyntaxFix
Write A Post
Hire A Developer
Questions
🔍
[formatting] Intellij reformat on file save
Home
Question
Intellij reformat on file save
Below is Neil's answer updated.
IntelliJ 13 Steps:
Code -> Reformat Code
Edit -> Macros -> Start Macro Recording
Code -> Reformat Code
File -> Save all
Edit -> Macros -> Stop Macro Recording
Name the macro (something like "formatted save")
File -> Settings -> Keymap
Right click on the macro. Add Keyboard Shortcut. Set the keyboard shortcut to Control + S.
IntelliJ will inform you of a hotkey conflict. Select "remove" to remove other assignments.
Examples related to
formatting
•
How to add empty spaces into MD markdown readme on GitHub?
•
VBA: Convert Text to Number
•
How to change indentation in Visual Studio Code?
•
How do you change the formatting options in Visual Studio Code?
•
(Excel) Conditional Formatting based on Adjacent Cell Value
•
80-characters / right margin line in Sublime Text 3
•
Format certain floating dataframe columns into percentage in pandas
•
Format JavaScript date as yyyy-mm-dd
•
AngularJS format JSON string output
•
converting multiple columns from character to numeric format in r
Examples related to
intellij-idea
•
IntelliJ: Error:java: error: release version 5 not supported
•
Has been compiled by a more recent version of the Java Runtime (class file version 57.0)
•
Error: Java: invalid target release: 11 - IntelliJ IDEA
•
IntelliJ can't recognize JavaFX 11 with OpenJDK 11
•
Error: JavaFX runtime components are missing, and are required to run this application with JDK 11
•
ERROR Source option 1.5 is no longer supported. Use 1.6 or later
•
Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6
•
How to configure "Shorten command line" method for whole project in IntelliJ
•
intellij idea - Error: java: invalid source release 1.9
•
Failed to resolve: com.google.android.gms:play-services in IntelliJ Idea with gradle