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

Formatter: Option to ignore section or line

Open kanlukasz opened this issue 5 years ago • 5 comments

Feature description or problem with existing feature

It would be nice to have the option to ignore sections or lines from the formatter. As you know, you have couple problems with bad formatting, so excluding can help sometimes

Describe the solution you'd like

Maybe something like in Stylelint eg.:

/* stylelint-disable */
a {}
/* stylelint-enable */

Or like in phpcs:

<?php
// phpcs:ignoreFile

public function store($myArray) // phpcs:ignore
// @codingStandardsIgnoreStart
class MyClassTest extends \PHPUnit_Framework_TestCase
{
    // @codingStandardsIgnoreEnd
    // ...
}

kanlukasz avatar Nov 20 '20 13:11 kanlukasz

can any one tell me if the above feature exist.

Dhiraj9554 avatar Mar 09 '21 08:03 Dhiraj9554

As you can see, the ticket is still open so it hasn't been implemented yet

kanlukasz avatar Mar 09 '21 08:03 kanlukasz

As you can see, the ticket is still open so it hasn't been implemented yet

How about now? Just kidding.

@bmewburn are there plans for this or is it one of those quirky things that don't pop up often enough to actually do much about it?

I'm of course aware you have a subscriber model and their requests would come first. Man's gotta pay bill.

working-name avatar Oct 29 '21 16:10 working-name

+1 for this.

zindont avatar Dec 22 '21 15:12 zindont

+1 for this!

nicosapp avatar Jul 05 '22 20:07 nicosapp

+1 for this :)

QuentiumYT avatar Oct 17 '22 09:10 QuentiumYT

instead of commenting "+1", i think you should show your support by hitting the thumbs-up on the issue :)

FunctionDJ avatar Oct 19 '22 10:10 FunctionDJ

+1

pedrazadixon avatar Jan 28 '23 23:01 pedrazadixon

+1 for this!

maotou316 avatar Feb 01 '23 10:02 maotou316

2+ years old, can we get this? I need it for code blocks with whitespace-pre on it in php template files. I will tip via paypal for the feature.

antivanity avatar Feb 11 '23 02:02 antivanity

+1

silnex avatar Mar 22 '23 08:03 silnex

+1 Formatting CSS selectors containing echoed PHP breaks the selector.

james0r avatar Jun 09 '23 03:06 james0r

+1

temp4422 avatar Jul 27 '23 08:07 temp4422

I think this is a very much-needed feature, I'm sure the people here do not represent the total of developers needing this feature.

I need to constantly turn off and on formatting on settings.json

Esteban-Rocha avatar Jul 29 '23 02:07 Esteban-Rocha