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
};
1
3 comments

In Settings | Editor | Code Style | JavaScript | Wrapping and Braces, set Objects to Wrap always:

 

0
Avatar
Permanently deleted user

Nope.

Step 1:

Step 2:

Result:

0

Works fine for me; please share your settings (<IDE config dir>\codestyles\<scheme name>.xml if you are using IDE-level scheme, or .idea\codeStyles\Project.xml when using a project scheme).

0

Please sign in to leave a comment.