# how to remove redundant space in the .tex file using latexindent

\begin{align}
a + b = c
\end{align}
[more spaces here] <=


I am using the latexindent to format my tex file. However, each time, I format the file, it will create more space after some blocks, like the align. Shown as above.

How to remove those redundant spaces?

BTW, I set my defaultIndent to be " " (two spaces).

Hmm, it's kind of answering my own question:

change the

removeTrailingWhitespace: 0


to be

removeTrailingWhitespace: 1


in the defaultSettings.yaml

Done.