codecadwallader / codemaid

CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
http://www.codemaid.net
GNU Lesser General Public License v3.0
1.9k stars 358 forks source link

CodeMaid removes whitespaces at the end of the line on raw string literals #997

Open joergmetzler opened 1 year ago

joergmetzler commented 1 year ago

Environment

Description

CodeMaid removes whitespaces at the end of the line on raw string literals.

Steps to recreate

Create a raw string literal (c# 10+):

var literal = 
           """
           the is a whitespace at the end of the line 
           """;           

The command CleanUp Active Document removes the whitespace at the end of the line.

Current behavior

Whitespace is removed.

Expected behavior

Whitespace is preserved.

codecadwallader commented 1 year ago

Thanks for reporting the issue. Unfortunately this is a known limitation, see #366