Object formatting issue
I can't find a way to set object default formatting. For example: I'd like to format objects always like from this:
// Sample
const test = {
q: 1,
w: 2, e: 3
};
// Or
const test = { q: 1, w: 2, e: 3 };
To this:
const test = {
q: 1,
w: 2,
e: 3
};
Please sign in to leave a comment.
In Settings | Editor | Code Style | JavaScript | Wrapping and Braces, set Objects to Wrap always:
Nope.
Step 1:
Step 2:
Result:
Works fine for me; please share your settings (
<IDE config dir>\codestyles\<scheme name>.xmlif you are using IDE-level scheme, or.idea\codeStyles\Project.xmlwhen using a project scheme).