Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

SD5b4 : Wrong indentation (settings?) on multiline statements

$
0
0

Steps to reproduce: 

  • Write a method:

       boolReturnEqual(int x1,int y1,int x2,int y2)
      {
         return x1 == x2 &&
            y1 == y2;
      }

  • Reformat source code
  • Same indentation is applied to both lines of the body:

       boolReturnEqual(int x1, int y1, int x2, int y2)
      {
         return x1 == x2 &&
         y1 == y2;
      }

Expected result would be a different indentation for the second line.

This behaviour does not depend on the format preset. I wasn't able to find a setting controlling this behaviour, but even if there was one, the default setting should not be this.

 


Viewing all articles
Browse latest Browse all 1764

Trending Articles