Align fields in columns broken? [message #721667] |
Fri, 02 September 2011 09:36  |
Eclipse User |
|
|
|
I'm trying to configure the formatter so that sets of lines that are assigning values have the equal / colons aligned. I found something online saying that the "Align fields in columns" option on the indentation tab of the Code Formatter options dialog is supposed to provide this behavior, but this does not seem to work.
Sample code:
var foo =
{
a : 1,
bb : 2,
ccc : 3
};
var a = 1;
var bb = 2;
var ccc = 3;
I would like it to look like this:
var foo =
{
a : 1,
bb : 2,
ccc : 3
};
var a = 1;
var bb = 2;
var ccc = 3;
Can anyone out there help?
Thanks,
Arin
Edited to apply correct code formatting in post
[Updated on: Fri, 02 September 2011 09:39] by Moderator
|
|
|
|
|
Re: (no subject) [message #721712 is a reply to message #721687] |
Fri, 02 September 2011 12:18  |
Eclipse User |
|
|
|
On 02-Sep-11 08:58, dread45153 wrote:
> This is an issue specific to the JavaScript code formatter. Since the
> exported XML file from the formatter profile contains the id
> "org.eclipse.wst.jsdt.core.formatter.align_type_members_on_columns" I
> assumed that this would need to be implemented by the WST package and
> not by the core eclipse project.
>
> I'm trying to figure out if this is a bug (and if so, a workaround), or
> if this is "expected behavior" for that function...
(Ah, sorry, my bad...)
|
|
|
Powered by
FUDForum. Page generated in 0.25593 seconds