Manage Line Separators in IntelliJ IDEA 12.1 Like a Boss

As we mentioned before the latest release of IntelliJ IDEA comes with better management for line separators.

The information about the line separators type used in the currently opened file is available now in the status bar.

Not a big surprise that it is possible to change the type of line endings for the current file via this control.

You can also perform a bulk change. Just select a target file or a directory in the project view and choose new separator via Main Menu → File → Line Separator.

Please feel free to share your feedback on this feature on our discussion forum or submit bug reports to the issue tracker.

Develop with Pleasure!

Comments below can no longer be edited.

10 Responses to Manage Line Separators in IntelliJ IDEA 12.1 Like a Boss

  1. Avatar

    Geoffrey De Smet says:

    April 18, 2013

    Nice work 🙂

    However, in 12.1.1 it corrupts PNG files:

  2. Avatar

    Jeff Olson says:

    April 18, 2013

    Just a suggestion…it is kind of confusing that you use one terminology (CR/LF) for the display, but then the other terminology (n vs. r) in the popup.

  3. Avatar

    Denis.Zhdanov says:

    April 18, 2013

    Hi Jeff,

    Fair enough


  4. Avatar

    Anton says:

    April 18, 2013

    Will it be possible to “bulk-convert” spaces to tabs for the whole project?

  5. Avatar

    Sebastiaan van Stijn says:

    April 18, 2013

    Very happy to see this (finally) implemented.

    Just out of curiosity, why still include Old Mac (Classic Mac OS may be a better naming) line endings? The last release of Mac OS (9) was in 1999. I.m.o it’s only confusing.

    Maybe it’s possible to only include this option in the dropdown if the original line-endings of the file are ‘r’, otherwise just omit it?

  6. Avatar

    Daniela Waranie says:

    April 19, 2013

    Long years of waiting are now terminated.

    Nice to see that your internal wording guide words – i saw many comments of your (core) developers talking about “line endings” instead of “line separator”. Together with the notice when a file is using a different line separator than specified in the project settings this IDE is now covering what even the smallest editor does for years.

    Congratulations. Basics covered. You can be proud of yourself! Go ahead! Do not stop now. Align your development power with the votes in your issue tracker, and i am sure, we will love you.

  7. Avatar

    Denis.Zhdanov says:

    April 23, 2013

    @Anton: you can call ‘reformat’ action from the project view as well, it will convert all tabs to spaces if your code style settings are set accordingly

    @Sebastian: ‘r’ option is here is on order to provide consistency with our old ‘line separators for new files’ settings (project settings | code style | general). Agree that it’s better to use ‘Classic Mac’ name there – http://youtrack.jetbrains.com/issue/IDEA-106087

  8. Avatar

    Anton says:

    April 24, 2013

    @Denis.Zhdanov: So, I guess it’s the only option so far. Applying ‘reformat’ to a whole project is kind of dangerous and could cause a lot of unwanted changes.

  9. Avatar

    WesternGun says:

    October 22, 2018


    This operation cannot be reverted and can possibly cause EVERY file in the file tree changed and will cause large numbers of unnecessary commits.

  10. Avatar

    kishore says:

    June 13, 2019

    I didn’t change files but drls generated in build time why came this issue repeatedly

Discover more