Visual Studio removes trailing spaces

1.Ctrl +H to open the replacement window ( note to select the appropriate search range )

VS2010:

VS2017、VS2022:

2. Copy the following regular expression to the selection window above ( note that there is a space before + ) :

VS2010:  +$

VS2017、VS2022:   +$

 

3. The following replacement window does not write

VS2010:

VS2017、VS2022:

 

4. Click "Regular Expression"

VS2010:

VS2017、VS2022:

5. Click Replace All

VS2010:

VS2017、VS2022:

Guess you like

Origin blog.csdn.net/xijinno1/article/details/133364674