| Align fields in columns broken? [message #721667] |
Fri, 02 September 2011 09:36  |
Missing name Missing name Messages: 17 Registered: May 2010 |
Junior Member |
|
|
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] Report message to a moderator
|
|
|
| (no subject) [message #721683 is a reply to message #721667] |
Fri, 02 September 2011 10:37   |
Russell Bateman Messages: 2706 Registered: July 2009 Location: Provo, Utah, USA |
Senior Member |

|
|
(This is less of a question for the web tools than for the newcomers
forum where it would receive greater consideration in terms of numbers
who see it and answers given.)
On 02-Sep-11 07:36, dread45153 wrote:
> 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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02871 seconds