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

Reformating Code for JSON in Ruby and Node.js

$
0
0

When automatic reformating is executed in Ruby, A hash could be formatted like below.

 

json = { :key1 => value1,

             :key2 => value2 }

 

On the other hand, in Node.js..

 

json = {

    key1: value1,

    key2: value2

};

 

I prefer the former.

So I tried to change some configurations for Javscipt code in Preference.

But I couldn't make it.

 

Is there any possible way??

Thanks.

 

----

 

My env: Mac 10.10.1, IntelliJ 14.0.1


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>