开发者

Resharper indenting comments between if and corresponding else

开发者 https://www.devze.com 2023-02-23 08:40 出处:网络
I am looking for the setting to tell Resharper to not indent comments that come between an if and its corresponding else.

I am looking for the setting to tell Resharper to not indent comments that come between an if and its corresponding else.

Example:

if()
{
}
    //Resharper keeps indenting this line
else
{
}

I want it to format like this:

if()
{
}
//The comment should line up with the braces and the "else"
else
{
}

I've gone through the Resharper indenting and line settings but am u开发者_开发百科nable to find the correct settings. What settings do I need to set to get the desired formatting?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号