VSCode, feature request: disable formatting

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

VSCode, feature request: disable formatting

Postby soderlind » October 26th, 2018, 9:00 am

I prefer using phpcs and WordPress formatting rules. Please add an option to disable the PHP tools formater.
soderlind
 
Posts: 1
Joined: October 26th, 2018, 8:50 am

Re: VSCode, feature request: disable formatting

Postby BladeMF » January 11th, 2019, 7:12 am

Or, even better, allow us to configure the formatting.
Welcome to the zone where normal things don't happen very often.
BladeMF
 
Posts: 346
Joined: October 10th, 2012, 7:14 am

Re: VSCode, feature request: disable formatting

Postby Jakub Misek » January 11th, 2019, 12:51 pm

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).
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: VSCode, feature request: disable formatting

Postby BladeMF » January 11th, 2019, 1:11 pm

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).
Welcome to the zone where normal things don't happen very often.
BladeMF
 
Posts: 346
Joined: October 10th, 2012, 7:14 am

Re: VSCode, feature request: disable formatting

Postby BladeMF » January 11th, 2019, 1:12 pm

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.
Welcome to the zone where normal things don't happen very often.
BladeMF
 
Posts: 346
Joined: October 10th, 2012, 7:14 am

Re: VSCode, feature request: disable formatting

Postby Jakub Misek » January 11th, 2019, 1:40 pm

Yes, disabling will be an option. Anyways, opening braces will be configurable.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 40 guests

cron

User Control Panel

Login

Who is online

In total there are 40 users online :: 0 registered, 0 hidden and 40 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 40 guests