-
Hello! I have been using Netbeans for quite some time now and I never quite figured out how to achieve some things with automatic formatting. What I mean by that are settings in the For example, when I have a long method definition like this: class SomeClass
{
public function someFunction(string $argumentA, int $argumentB, array $argumentC): void
{
}
} I would like it to be formatted like so: class SomeClass
{
public function someFunction(
string $argumentA,
int $argumentB,
array $argumentC
): void {
}
} Unfortunately, the closest thing I got is something like this: class SomeClass
{
public function someFunction(string $argumentA,
int $argumentB, array $argumentC): void
{
}
} Same goes for array initializing, method calling etc., can someone please explain if this is achievable with Netbeans settings for the editor, or do I need to use a tool like PHPCSFixer? Another thing is, I would like to know if there is a way to configure blank spaces to be added after methods' closing brace, but not after the last one? Example: class SomeClass
{
public function someFunctionA(): void
{
}
public function someFunctionB(): void
{
}
// is there a way to prevent this blank line from being added?
} Thank you for all the help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This kind of formatting is not supported yet. |
Beta Was this translation helpful? Give feedback.
This kind of formatting is not supported yet.
There is open issue related to PSR standard formatting #4685