1

I am using Eclipse Juno and PDT. With the PHP Formatter i am formatting my code. I have created an own formatter preset based on the PSR-2 template.

Problem

I cant find any configuration option to keep the whitespaces in @param phpDoc comments.

Before code formatter:

/**
 *
 * @param string $sName              name value
 * @param mixed  $sValueWithLongName value
 */

After code formatter:

/**
 *
 * @param string $sName name value
 * @param mixed $sValueWithLongName value
 */

How can i keep the whitespaces without using the @formatter:off tags?

1 Answer 1

2

On juno (PDT 3.1) you can't.

You need PDT 3.3.2. In option's you'll find "disable phpdoc formatting".

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.