简体   繁体   中英

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) {

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM