如何更改 Netbeans 中使用的行尾 [英] How to change the line ending used in Netbeans

查看:24
本文介绍了如何更改 Netbeans 中使用的行尾的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Netbeans 在行尾有这个 wiki 条目:http://wiki.netbeans.org/FaqEditorEOLs

Netbeans has this wiki entry on line endings: http://wiki.netbeans.org/FaqEditorEOLs

但它不是很有用.它只是说你不应该在不同的操作系统上开发,就是这样......

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 中使用的行尾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆