问题描述
Netbeans在行尾具有以下Wiki条目: http://wiki.netbeans.org/FaqEditorEOLs
Netbeans has this wiki entry on line endings: http://wiki.netbeans.org/FaqEditorEOLs
但这不是很有用.它只是说您不应该在不同的OS上进行开发,就是这样...
But it isn't very useful. It just says that you shouldn't develop on different OS and that's that...
但是,在我的情况下,我对此无能为力.我在Windows计算机上,正在使用的PHP应用程序必须以UNIX EOL结尾.
In my situation however, I have no power over it. I'm on a windows machine and the PHP app I'm working on needs to end with the UNIX EOL.
似乎没有为新文件设置此选项的选项.谁能告诉我在哪里设置?
There does not seem to be an option to set this for new files. Can anyone tell me where to set this?
推荐答案
刚刚看到您可以将其设置为命令行启动标志:-J-Dline.separator = LF
Just saw that you can set this as a command-line startup flag: -J-Dline.separator=LF
我自己还没有测试过,但是我正在寻找以某种方式将其烘焙到配置中的方法.
I haven't tested this myself but I'm looking for ways to bake this into the configs somehow.
这篇关于如何更改Netbeans中使用的行尾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!