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

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -