The formatter joins multiline string on a single line [message #1687681] |
Thu, 19 March 2015 19:05 |
|
Eclipse for PHP Developers
Version: Luna Service Release 2 (4.4.2)
Build id: 20150219-0600
When I have something like
$a = "aaaaaaaaaaaaaaaaaaaaaaaaa".
"bbbbbbbbbbbbbbbbbbbb";
using CTR+SHIF+F results in
$a = "aaaaaaaaaaaaaaaaaaaaaaaaa" . "bbbbbbbbbbbbbbbbbbbb";
Imagine what happens to a long sql statement splitted in a proper way using ctrl+shif+f !!!
I've already taken a look at every option in
preferences->php->code style->formatter
and
preferences->php->editor
and
preferences->General->editors
... but no luck.
hope there is an option other then @formatter:off
Thanks in advance,
Rik
[Updated on: Thu, 19 March 2015 20:31] Report message to a moderator
|
|
|
|
Re: The formatter joins multiline string on a single line [message #1688349 is a reply to message #1688279] |
Fri, 20 March 2015 14:17 |
|
OH MY GOSH! It's incredible!
For every string I have to set on and off the format option?!
What is the criterion used by the decision makers of this "feature"?
What's for, a formatter that change this
$stm = 'CREATE TABLE queue(' .
'id INTEGER PRIMARY KEY,' .
'rec TEXT NOT NULL,' .
'subject TEXT NOT NULL,' .
'body TEXT NOT NULL,' .
'headers TEXT NOT NULL);';
into a single line that need horizontal scroll? (Not in this forum because it's more intelligent than Eclipse)?
$stm = 'CREATE TABLE queue(' . 'id INTEGER PRIMARY KEY,' . 'rec TEXT NOT NULL,' . 'subject TEXT NOT NULL,' . 'body TEXT NOT NULL,' . 'headers TEXT NOT NULL);'
I can't do it. I give up.
Do you know a previous version without this problem?
Keplero? Juno? Or I'd better to restore the Indigo version I was using before this bad attemp with Luna?
|
|
|
|
|
Re: The formatter joins multiline string on a single line [message #1688407 is a reply to message #1688367] |
Fri, 20 March 2015 16:45 |
|
Quote:Netbeans haven't as advanced formatter as we now Wink
Yes I know, but in a way, too much advanced could be harmful if its beyond certain limits and becomes annoying!
It's a bit like the linux distros: Ubuntu+Unity it's surely modern and advanced, but just for this reason Ubuntu is now number 2 and Mint Mate is the nr 1.
For me, indigo+PDT was already the top.
I didn't need anything more.
Unfortunately once per decade it's necessary to upgrade (e.g. new php features not supported) and that's why I'm here with Luna... but I knew in advance that this migration it would be full of complications and basically nothing better because I didn't need another formatter, GTK graphics, etc.... by the way: gtk theme on Mint + NVidia sucks: when I try to move tabs it flicker both monitor and every windows. I've found a solution and I reported on my wiki
Eclipse Luna speed up and fix flickering
Quote:Two options should fix your problem:
1. Initializer justification
2. Preserve new lines after "." operator
You can prepare enhancement request on bugzilla. If not I'll do it later.
OK, I'm going to try this solution first.
Thanks for you mega-help in any case.
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05348 seconds