M
M
Maxim Zolotoy2018-04-21 17:33:11
phpstorm
Maxim Zolotoy, 2018-04-21 17:33:11

How to configure phpstorm to leave an empty string in a function if it is empty initially?

When I create a new function, it looks like this. Or if I remove everything from it and refactor the code, the empty line is also removed there and it infuriates. In hundreds of storm settings, I could not find where to change it. Maybe someone will tell?
5adb4ba624c84652557172.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2018-04-21
@JhaoDa

First: Editor → Code Style → PHP → Set from... - Predefined style = PSR1/PSR2
Then: Editor → Code Style → PHP → Blank Lines → After '{' = 1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question