Option to not add line breaks in no-op (empty) functions in JavaScript (IntelliJ Web/PHP storm) -
i can not life of me find formatter option turn off automatic line breaks inside no-op function braces. line breaks added automatically both arrow functions , regular functions. frustrating when example passing no op functions other functions (as hook or callback), i.e. wrapwithcommonerrors(() => {})
.
function() {}
becomes
function() { }
() => {}
becomes
() => { }
have tried simple blocks in 1 line
option?
you can find at
file
-> settings
-> code style
-> javascript
-> wrapping , braces
-> keep when reformatting
Comments
Post a Comment