Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我没有找到这个设置。源代码很好。但是对于某些 shell,\r\n 将不起作用。
可以在代码样式设置中更改默认分隔符:
对于现有文件,您可以通过状态栏进行切换:
更改 IDE 的分隔符:File > Settings... > Editor > Code Style > Line separator (for new files):
File > Settings... > Editor > Code Style > Line separator (for new files):
更改当前文件的分隔符:File > Line Separators
File > Line Separators
或从右下角(click on CRLF/LF/CR):
click on CRLF/LF/CR