I'm using Brackets Beautify extension, and having an issue while beautifying my code.
Let's say I have this code:
function test(arg1, arg2)
{
var a = arg1 + arg2;
return a;
}
var object =
{
"some" : 123,
"some2" : 13123
}
When I click Ctrl + Alt + B in order to beautify my code, the function above will look like this:
function test(arg1, arg2) {
var a = arg1 + arg2;
return a;
}
var object = {
"some": 123,
"some2": 13123
}
But I want it to keep look like the first one (where the curly braces are in new line), because it's more readable for me.
I tried searching for solution, but no success.
BTW, I'm talking about JavaScript. The PHP code is OK.
Any ideas?
Sorry for any English mistakes, I'm not a native speaker.
EDIT: Found a partial solution. I changed "brace_style" to "expand" in "default.jsbeautifyrc" file (somehow it didn't work while doing this in the ".jsbeautifyrc" file).
Anyway, it still doesn't work for arrays and objects.
EDIT 2: Just noticed that it happens also in CSS code.