Trim the final whitespace tool?

Does anyone know of an exe / tool command line that will reliably trim spaces from the end of lines for C #?

+4
source share
2 answers

Do I need to be a command line? Visual Studio will be when you execute the Format Document ( Ctrl+E+D or Ctrl+K+D depending on the keyboard layout).

+4
source
 alias trimfile="sed -r 's~[[:space:]]+\$~~g' -i" 
+1
source

Source: https://habr.com/ru/post/1338472/


All Articles