Loading

csharp_new_line_before_catch

Put catch on its own line.

Value Notes
true
false

Default: true

csharp_new_line_before_catch = true
		
namespace N;

public class Widget
{
    public int Parse(string s)
    {
        try {
            return int.Parse(s);
        } catch (FormatException) {
            return 0;
        }
    }
}
		
namespace N;

public class Widget
{
    public int Parse(string s)
    {
        try
        {
            return int.Parse(s);
        }
        catch (FormatException)
        {
            return 0;
        }
    }
}
		
csharp_new_line_before_catch = false
		
namespace N;

public class Widget
{
    public int Parse(string s)
    {
        try
        {
            return int.Parse(s);
        }
        catch (FormatException)
        {
            return 0;
        }
    }
}
		
namespace N;

public class Widget
{
    public int Parse(string s)
    {
        try
        {
            return int.Parse(s);
        } catch (FormatException)
        {
            return 0;
        }
    }
}