csharp_indent_case_contents
Indent statements inside a case label.
| Value | Notes |
|---|---|
true |
|
false |
Default: true
csharp_indent_case_contents = true
namespace N;
public class Widget
{
public string Name(int code)
{
switch (code)
{
case 1:
return "one";
case 2:
{
var msg = "two";
return msg;
}
default:
return "other";
}
}
}
namespace N;
public class Widget
{
public string Name(int code)
{
switch (code)
{
case 1:
return "one";
case 2:
{
var msg = "two";
return msg;
}
default:
return "other";
}
}
}
csharp_indent_case_contents = false
namespace N;
public class Widget
{
public string Name(int code)
{
switch (code)
{
case 1:
return "one";
case 2:
{
var msg = "two";
return msg;
}
default:
return "other";
}
}
}
namespace N;
public class Widget
{
public string Name(int code)
{
switch (code)
{
case 1:
return "one";
case 2:
{
var msg = "two";
return msg;
}
default:
return "other";
}
}
}