C
C
CodeMaster1252019-06-09 22:38:57
phpstorm
CodeMaster125, 2019-06-09 22:38:57

How to make automatic spaces between statements in PHPStorm?

Tell me how to configure PHPStorm so that auto spaces are placed between operators?
For example: not if($a>5) but if ($a > 5)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
eldario, 2019-06-11
@eldario666

You can always call Code -> reformat Code before saving the document
Or record a macro
1. Edit -> Macros -> Start recording
2. Code -> Reformat Code
3. Ctrl+s
4. Edit -> Macros -> Stop Record
5. Enter a name for the macro (Reformat_macros)
6. In the Ctrl+Alt+S settings in the Keymap, remove Ctrl+S from the Save All command
7. Attach the Ctrl+S combo to the macro (Reformat_macros)
8. That's it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question