Page 1 of 1

VSCode, feature request: disable formatting

PostPosted: October 26th, 2018, 9:00 am
by soderlind
I prefer using phpcs and WordPress formatting rules. Please add an option to disable the PHP tools formater.

Re: VSCode, feature request: disable formatting

PostPosted: January 11th, 2019, 7:12 am
by BladeMF
Or, even better, allow us to configure the formatting.

Re: VSCode, feature request: disable formatting

PostPosted: January 11th, 2019, 12:51 pm
by Jakub Misek
It is a good idea.

We'll add an option to disable formatting. Just noting we are working on "WordPress" profile that respects the WordPress standards. In future we'll be providing selection formatting and autoformatting after typing semicolon and right braces (which other extensions don't/cannot have).

Re: VSCode, feature request: disable formatting

PostPosted: January 11th, 2019, 1:11 pm
by BladeMF
Jakub Misek wrote:It is a good idea.

We'll add an option to disable formatting. Just noting we are working on "WordPress" profile that respects the WordPress standards. In future we'll be providing selection formatting and autoformatting after typing semicolon and right braces (which other extensions don't/cannot have).


I am very, VERY particular about how I want my code formatted. The dream scenario will be to have all the settings VS 2017 has about C# formatting (newlines and spaces part).

Re: VSCode, feature request: disable formatting

PostPosted: January 11th, 2019, 1:12 pm
by BladeMF
Jakub Misek wrote:It is a good idea.

We'll add an option to disable formatting. Just noting we are working on "WordPress" profile that respects the WordPress standards. In future we'll be providing selection formatting and autoformatting after typing semicolon and right braces (which other extensions don't/cannot have).


But I would be happy with disabling. Or maybe choosing where my opening braces are put at least.

Re: VSCode, feature request: disable formatting

PostPosted: January 11th, 2019, 1:40 pm
by Jakub Misek
Yes, disabling will be an option. Anyways, opening braces will be configurable.