[DevExpress Support Team: CLONED FROM T557130: New Space formatting issues]
Hi Alex,
I've installed and HF and the above 3 issues have been fixed… BUT a NEW one has been introduced.
It's on the Formatting>Spacing>Statement option – when this is turned ON the below issue happens… The comment line in the code below is duplicated each time the code cleanup button is pressed. So before it has one line, then after 3 presses it looks like the after section:
NOTE - this happens if i have either Spaces or Tabs selected for indenting.
BEFORE:
C#public static string GetHashSha256(string text)
{
byte[] bytes = Encoding.UTF8.GetBytes(text);
var hashstring = new SHA256Managed();
// a comment
byte[] hash = hashstring.ComputeHash(bytes);
return GetStringFromHash(hash);
}
AFTER 3 cleanup clicks:
C#public static string GetHashSha256(string text)
{
byte[] bytes = Encoding.UTF8.GetBytes(text);
var hashstring = new SHA256Managed();
// a comment
// a comment
// a comment
// a comment
// a comment
// a comment
// a comment
// a comment
byte[] hash = hashstring.ComputeHash(bytes);
return GetStringFromHash(hash);
}
This is only 3 clicks on the code cleanup button I have in the tool bar (I have to always click it 3 times to do a full clean up of the file.
For now, I have to leave the "Statement" option unchecked due to this.
Alan,
I have reproduced the issue and we are working on it. Thank you for your patience!
Super, Thanks Alex :)
Hi, Excellent, just downloaded the HF and had no issues this time :) Thanks for the quick fixes guys!
You are welcome.