Resharper code format linebreaks
        Posted  
        
            by mizipzor
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by mizipzor
        
        
        
        Published on 2010-06-16T16:33:09Z
        Indexed on 
            2010/06/16
            17:02 UTC
        
        
        Read the original article
        Hit count: 307
        
Im trying to setup the code formatting in ReSharper. Limiting each line to a maximum count of characters, it seems to want to place casts on a separate line. Like so:
string mystring =
    (string)
        MyStringConverter.convert(toconvert, typeof(string), null, null);
I cant seem to be able to find the correct combination of settings to not have this on three lines. Im looking for something like this:
string mystring = (string) MyStringConverter.convert(
    toconvert, typeof(string), null, null);
Where the linebreak occurs is not that important, I guess I cant be to picky when I want to limit the line length. But three lines is a bit much.
Does anyone know the/any correct combination of settings to make it only cut the line once?
© Stack Overflow or respective owner