javascript object formatting

Hello, sorry if it is trivial but i don't find how to reformat


var obj = {
    f       : 1,
    A:1,
    b  : 1        ,
    c       : 1,
    r :       5
}



to

var obj = {
    f : 1,
    A : 1,
    b : 1,
    c : 1,
    r : 5
}

2 comments
Comment actions Permalink

You are right - that should be trivial.
However I think there's no such option in IDEA right now.
Strangely JS formatting is kind of underdeveloped in IDEA.
If you file a Youtrack issue, I'll vote for it:
http://youtrack.jetbrains.net/dashboard/IDEA#tab=0

-- Stephen

On 14.05.2011 20:25, jfa src wrote:

Hello, sorry if it is trivial but i don't find how to reformat

>

var obj = {
     f       : 1,
     A:1,
     b  : 1        ,
     c       : 1,
     r :       5
}

>

to

>

var obj = {
     f : 1,
     A : 1,
     b : 1,
     c : 1,
     r : 5
}

>

---
Original message URL: http://devnet.jetbrains.net/message/5303193#5303193


0

Please sign in to leave a comment.