1

So there is already a post on how to remove trailing whitespace for IntelliJ, but there are claymores invisible to the naked eye as usual:

Remove trailing whitespace on save in Intellij Idea (12)

However, there is a C++/C editor derivative of IntelliJ, which is called Clion, and unfortunately no such checkbox exists as in the same location as in the link. So I can't use a mine detector.

I can't find anywhere in the internet how to automatically remove trailing whitespace on save in Cion. If anyone knows where the setting is, please let me know. Thanks, and call me Mr. X.

Community
  • 1
  • 1

1 Answers1

2

It's under File -> Settings -> Editor -> General -> Other:

enter image description here

ifma
  • 3,673
  • 4
  • 26
  • 38