Eclipse 3.8 PDT Formatting [message #1082517] |
Thu, 08 August 2013 13:33  |
Eclipse User |
|
|
|
When formatting a page (ctrl-shift-f) the result is a format nothing as it was before. Extra lines are added, where I once had the code lined up on the equal signs is now gone. I am aware of the Preferences->PHP->Code Style->Formatter and created a new profile and tried to adjust. However, the format is just not right.... What happened?
Can I remove or go to an older format style? If so can some one recommend how to install (Import) a new format style?
Thanks in advance,
|
|
|
Re: Eclipse 3.8 PDT Formatting [message #1082747 is a reply to message #1082517] |
Thu, 08 August 2013 21:31  |
Eclipse User |
|
|
|
About the case which you probably described in Bug 410249 Code Formatter conflicting with comments helpers of Code Assist,
Quote:
/**
* Test comment blah, blah, blah
*@param
*@param
*/
Ctrl/shift-f
/**
* Test comment blah, blah, blah
*
*@param
*
*@param
*
*/
Ctrl/shift-f (Again)
/**
* Test comment blah, blah, blah
*
*
*@param
*
*
*@param
*
*
*/
I can nearly reproduce this behaviour, however, this is caused by invalid document. @param requires a name.
/**
* Test comment blah, blah, blah
*@param
*@param
*/
This must be
/**
* Test comment blah, blah, blah
*@param name type description
*@param name
*/
If you dislike the formatter, remove org.eclipse.php.formatter.* in eclipse/plugins folder at your own risk.
(though this is off-topic, probably you are using Zend Eclipse PDT, I don't support it)
|
|
|
Powered by
FUDForum. Page generated in 0.03984 seconds