# Converting line delimiters

The Java editor can handle Java files with heterogeneous line delimiters. However other external editors or tools may not be able to handle them correctly.

If you want to change line delimiters used by your Java files:

1. Open a Java file in the Java editor
2. Select File > Convert Line Delimiters To from the menu bar
3. Select the delimiters to which you want to convert the file to (one of Windows: CRLF, Unix: LF, MacOS 9: CR)

Notes:

- You can also apply these conversions to multiple files, whole folders or project that are selected in the Package Explorer or in the Navigator.
- To change the line delimiters used for new files,
  - set the workspace default (Window > Preferences > General > Editors > New text file line delimiter), or
  - set the project-specific default (Context menu > Properties > Info > New text file line delimiter)

Java editor

Using the Java editor

Source menu