How to disable props indentation for React?

Is there any way to disable this indentation for props destructuring? It's always indented in on a same position on y axis and it's so annoying :D 

Thanks a lot!

 

1
4 comments

Try disabling Align when multiline for Function declaration parameters in Settings | Editor | Code Style | TypeScript | Wrapping and Braces:

 

1

Elena Pogorelova Works like a charm! Thank you!

 

One more thing crossed my mind.. Is there any way to disable automatic completing curly braces after writing prop name in JSX?

0

You can set Add for JSX attributes: to None in Settings | Editor | Code Style | HTML | Other to disable them, or to Based on type to have either braces or quotes auto-completed depending on props type

1

Elena Pogorelova It works! Thank you very much :)

1

Please sign in to leave a comment.