• Home
  • About
    • IT-eyes photo

      IT-eyes

      IT-eyes is a website for sharing IT technology.

    • Learn More
    • Email
    • Twitter
    • Github
    • Codepen
  • Posts
    • All Posts
    • All Tags
  • Projects

Cancel removing trailing spaces in IDEA

31 Jul 2022

Reading time ~1 minute

This guide is intended to address the issue of removing trailing whitespace in IDEA.

background

Modified the code in the code repository. There are spaces at the end of some lines. After submitting, these spaces are gone. It seems that the content has been modified in the code repository, but it is not actually modified. Can be confusing for reviewing code.

solve

IDEA will remove the trailing spaces by default when saving. If we don’t want to remove the trailing spaces, we just need to cancel this function. As shown in the figure:

For more details, please visit:IT-eyes



IDEA Share Tweet +1