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 || []);
}, []);
Please sign in to leave a comment.
thank you for contacting us.
Please disable ReSharper (VS Tools | Options | ReSharper | Suspend) and check if the issue is still relevant.
Thank you!
If I disable Resharper then Resharper's option to reformat code is not available. I am not sure what your suggestion proves.
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!
That did it. Thanks.
thank you for letting me know.
Please feel free to contact us in case of any problems or questions.
Thank you!
thank you for letting me know.
Please feel free to contact us in case of any problems or questions.
Thank you!