How to remove trailing whitespace in PyDev plugin for Eclipse August 8, 2023 by Tarik Check in: Preferences > PyDev > Editor > Code Style > Code Formatter and check the “Right trim lines?” check box.