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.
Description of Problem:
Steps to reproduce the problem:
1. Create #region in text editor. Ensure blank lines before and after #region & #endregion.
2. From menu, choose Edit --> Format --> Format Document
Blank lines are stripped out before and after #region and #endregion lines.
1. Preserve the blank lines that are there
2. Provide settings in Preferences pane to specify blank lines before/after these statements.
3. Leave 1 blank line before/after these statement lines
How often does this happen?
Every time I save (which also formats the document)
It makes the code hard to read.
I added the option & defaulted to 1 blank line
Thanks Mike! Any idea when this will be released?
No not really since the fix came too late in the beta cycle - I don't think that we add new options to the next release. Therefore it will take a while :/.
Ok - thanks for fixing it anyway.
Today we have checked this issue with:
XS 4.2.3(build 29)
Now this issue is not exist, code formatting not removes blank lines before/after #region and #endregion statements in XS.
Hence marking this as Verified.