Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij editor using \r\n as line break. How to set it using \n only?

I didn't find a setting for this. Source code is fine. But for some shell, \r\n will not work.

like image 574
DeepNightTwo Avatar asked Jul 08 '13 08:07

DeepNightTwo


People also ask

How do I format multiple lines in IntelliJ?

You can reformat line indents based on the specified settings. While in the editor, select the necessary code fragment and press Ctrl+Alt+I . If you need to adjust indentation settings, in the Settings/Preferences dialog ( Ctrl+Alt+S ), go to Editor | Code Style.

How do I set line length in IntelliJ?

To configure the line length, open settings Ctrl+Alt+S , navigate to Editor | Code Style, and type the necessary length in the Hard wrap at N columns field. Wrap if long: break a section of text into lines so that each line fits the configured line length.


1 Answers

Default separator can be changed in the code style settings:

line separator

For the existing files you can switch it via the status bar:

status bar line separator

like image 93
CrazyCoder Avatar answered Nov 12 '22 15:11

CrazyCoder