Every time I have array initialization and try to format the code by pressing CTRL+K
and CTRL+D
, the code indent doesn't get formatted automatically.
Sample code.
var users = new[]
{
new User(),
new User ( ),
new User { Id = 1 },
new User { Id = 1 } ,
new User { Id = 1 } ,
new User { Id = 1 },
};
Expected result.
var users = new[]
{
new User(),
new User(),
new User { Id = 1 },
new User { Id = 1 },
new User { Id = 1 },
new User { Id = 1 },
};
My indenting setting.
Already tried installing Code Maid and pressing shortcut in the following menu (Format Document, Format Selection).