Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In WebStorm, how do I disable props indentation in React?

In WebStorm, by default indentation for React functional component props is to align it with the opening curly brace.

export default function TableSeater({
                                    sectionsLookup, tableSelectionList
}: IProps) {

How can I make it align normally by default, like this?

export default function TableSeater({
  sectionsLookup, tableSelectionList
}: IProps) {
like image 449
Jim Doyle Avatar asked Oct 14 '25 17:10

Jim Doyle


1 Answers

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

like image 107
Aditya Shaw Avatar answered Oct 18 '25 01:10

Aditya Shaw