vscode-intelephense icon indicating copy to clipboard operation
vscode-intelephense copied to clipboard

Formatting of "!" in if condition

Open As1fAli opened this issue 4 years ago • 10 comments
trafficstars

I Know "intelephense.format.braces" option takes care of so much stuff.

But I have an if condition

if (! $var) {
    // Some code
}

Intelephense removes space in condition on save and gives:

if (!$var) {
    // Some code
}

I want space in after "!" sign.

Please add option to format that OR suggest me any duplicate issue or any fix.

Thank you!

As1fAli avatar May 03 '21 18:05 As1fAli

I would also find this very useful. Laravel is a very popular framework and always uses a space after exclamation marks. This is even part of their contributing guidelines.

It would be great if we could set this option or at least if Intelephense could stop removing spaces automatically.

marcbelletre avatar Dec 16 '21 11:12 marcbelletre

Very keen to see this introduced. It is a common style to follow and currently this causes issues on many projects being reformatted to remove the space.

codepuncher avatar Feb 17 '22 10:02 codepuncher

Would also very much appreciate this change.

bitfactory-edo-freriks avatar May 24 '22 08:05 bitfactory-edo-freriks

I'd also appreciate this too, would grab a premium license for this.

adamndev avatar Jul 01 '22 19:07 adamndev

I'd also appreciate this too, it is good, beaucause Laravel is a best current,

kythuatwebso avatar Jul 19 '22 03:07 kythuatwebso

Vote 1+

hoangnamitc avatar Jul 19 '22 03:07 hoangnamitc

I also appreciate this too, hope there's an option for this so it's compatible with laravel pint

arislanhaikal avatar Aug 05 '22 10:08 arislanhaikal

+1

guilhermedotcamargo avatar May 25 '23 21:05 guilhermedotcamargo

+1

ChinaMoli avatar Jun 14 '23 08:06 ChinaMoli

+1

twysto avatar Feb 01 '24 11:02 twysto

I'd also appreciate the Laravel pint compatibility.

gergo-tar avatar Mar 01 '24 17:03 gergo-tar