In Visual Studio while designing MVC views (in .aspx or .ascx files), I often use if statements. When I auto-format (Ctrl+<
.aspx
.ascx
if
the formatting is handled by individual plugins, for js you can use the following setting:
// Defines whether an open brace is put onto a new line for functions or not. "javascript.format.placeOpenBraceOnNewLineForFunctions": true,