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 = "";

?

0
4 comments

You need to invoke reformat code action, if you are using version control, this can be done automatically on commit.

0
Avatar
Permanently deleted user

I know that I can invoke reformat option. There is no another way? 

0

You can try Save Actions plug-in: https://plugins.jetbrains.com/plugin/7642?pr=idea.

It can reformat code on save.

0
Avatar
Permanently deleted user

Thx. It's not exactly I've meant but close enough ;) 

0

Please sign in to leave a comment.