Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Coffeescript + Reformat code

$
0
0

Hi.

 

Intellij (12.1.3)

 

Coffescript code:

 

test = (x)->  x += 10  x *= 10  return  
myFunc = ->  test(10)

 

After code reformating look like

 

test = (x)->  x += 10  x *= 10
return

myFunc = ->  test(10)

 

Pay attention to position of word "return"

 

It is bug?

 

Before:

before-code-reformating.png

After:

after-code-reformating.png

My code style settings for coffeescript:

coffee-code-style-01.png

coffee-code-style-02.png

coffee-code-style-03.png

coffee-code-style-04.png

 

Thanks in advance


Viewing all articles
Browse latest Browse all 5661

Trending Articles