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!

This entry was posted in New Features and tagged , , . Bookmark the permalink.

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

  1. Geoffrey De Smet says:

    Nice work :)

    However, in 12.1.1 it corrupts PNG files:

  2. Jeff Olson says:

    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. Denis.Zhdanov says:

    Hi Jeff,

    Fair enough


  4. Anton says:

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

  5. Sebastiaan van Stijn says:

    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. Daniela Waranie says:

    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. Denis.Zhdanov says:

    @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 –

  8. Anton says:

    @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. WesternGun says:


    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. kishore says:

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

Leave a Reply

Your email address will not be published. Required fields are marked *