JavaScript Coding Formatting Issue

So if I have this code:

var data [{
  display: "Configuration",
  value: 'config'
}];


and I run the code formatter, it turns into this:

var data = [
  {
    display: "Configuration",
    value: 'config'
  }
];


I tried looking at the javascript coding style for wrapping and braces but I can't seem to find anything that would be causing this.

Is there any configuration I can set to prevent this from happening and to keep the original code intact?

0
1 comment

There is no way to do this currently. Please vote for http://youtrack.jetbrains.com/issue/WEB-7226


0

Please sign in to leave a comment.