How to stop this kind of wrapping during code reformatting?

I have this Typescript code and when I reformat the code the ‘[]);’ part goes to a new line. I can't find the setting to disable this behavior.

 React.useEffect(() => {
        setStates(stateOptions || []);
    }, []);

 

0
6 comments
Hello,
thank you for contacting us.
Please disable ReSharper (VS Tools | Options | ReSharper | Suspend) and check if the issue is still relevant.
Thank you!
0

If I disable Resharper then Resharper's option to reformat code is not available. I am not sure what your suggestion proves.

0
Hello,
please try to set the following option ReSharper | Options | Code Editing | TypeScript | Formatting Style | Line Breaks | Wrapping and Chopping | Wrap invocation argument   = Simple Wrap
Thank you!
0

That did it. Thanks.

0
Hello,
thank you for letting me know.
Please feel free to contact us in case of any problems or questions.
Thank you!
0
Hello,
thank you for letting me know.
Please feel free to contact us in case of any problems or questions.
Thank you!
0

Please sign in to leave a comment.