How to automatically fix spaces in after variable declaration
Answered
There is a way to automatically fix without any shortcuts spaces in declaration of variables?
So when typing
String any="";
Should be fixed to
String any = "";
?
Please sign in to leave a comment.
You need to invoke reformat code action, if you are using version control, this can be done automatically on commit.
I know that I can invoke reformat option. There is no another way?
You can try Save Actions plug-in: https://plugins.jetbrains.com/plugin/7642?pr=idea.
It can reformat code on save.
Thx. It's not exactly I've meant but close enough ;)