如何阻止ReSharper删除C#程序XML注释中的末尾空格?
I recently upgraded ReSharper to the Ultimate 2018.1 release, and ever since, I've noticed a frustrating behavior when editing C# source files: any trailing spaces inside XML comments are automatically removed.
For example, if I have a trailing space on a line in an XML comment and press Enter to move to the next line, that trailing space vanishes right away (as demonstrated in the example image).
Here's what I've already checked and confirmed:
- This wasn't an issue in earlier versions of ReSharper.
- Disabling/suspending ReSharper makes the problem disappear entirely, so it's definitely tied to the plugin.
- I've dug through all relevant ReSharper settings (including formatting rules, whitespace handling, and comment-specific options) and tried tweaking them, but none of the changes fixed the issue.
I've gone ahead and submitted a bug report to JetBrains for this problem. If you're encountering the same annoying behavior, please take a moment to vote on the bug report—this helps the team prioritize fixing it faster.
内容的提问来源于stack exchange,提问作者RenniePet

