Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
In an attached video file you can see the problems.
First, if I write nested foreach blocks with braces - everything is fine.
But if I omit braces on the top level because the only statement will be the nested foreach block which is the correct C# code, MD mismatches indentation level. And please note how instead of the "in" keyword there was an "int".
Moreover, when I fix the indentation manually and paste code in another place it corrupts my formatting again.
I have "End of line" code formatting policy and only "Insert matching brace", "Smart semicolon placement" options enabled.
Created attachment 3803 [details]
Today, we have checked this issue with
XS 4.2.3(build 23)
If we omit braces on foreach block at top level then instead of the "in" keyword there was an "int" on second foreach block.This issue is still exists.
However in XS indentation mismatch doesn't occur if we omit braces.
screencast for the same: http://screencast.com/t/YsS7OXVkv
Hence reopening this issue
This is a different issue. Can you please open a new bug? this one is fixed.
As per comment 4 We have filed Bug 17164 for the same.
However in XS indentation mismatch doesn't occur in XS. Hence marking this as Verified.