The version of NetBeans that I use is 6.5.1
相关问题
- Step by step instructions for getting cppunit up a
- org.jdesktop.application package doesn't exist
- Don't want netbeans debugger to go to disassem
- using rmic in netbeans
- netbeans unable to resolve identifier c_str
相关文章
- Java: Look and Feel
- C++ compiler error in netbeans
- How to escape @ sign inside JSDoc comments in NetB
- php: auto indent the whole code?
- JSON.parse with newline [duplicate]
- Python thinks a 3000-line text file is one line lo
- Create src/test/resources in Maven Netbeans 8.x wi
- Stop Tomcat when run inside of Netbeans
recently updated to 7.2 and started to search for the solution I had at 7.1.2 version. Take a look at this plugin that helps to switch between line endings types.
I think you can't. NB will use the native OS format where it is running. If you have issues with that, there is an Ant
FixCRLF
task.There is a platform specific property that you may use make your code cross platform. See http://java.sun.com/docs/books/tutorial/deployment/applet/properties.html
String newline = System.getProperty("line.separator");
What is your goal - to have a work flow using only Unix line-endings?
As has already been pointed out - there isn't any functionality in Netbeans to convert from one line ending to the other.
New PHP files created in NetBeans (File > New File > PHP) have Unix line endings by default.This doesn't really give you the functionality you asked about but Netbeans will respect the file endings of existing files and create new PHP files with Unix line endings.
I don't know how to do this using NetBeans, but if you store your code in a Subversion repository, you might want to look into the svn property svn:eol-style.
There is a plugin that will help to switch the line endings. It is 'Show and change line endings'. You can install it directly within NetBeans.
Go to Tools->Plugins->Available Plugins
Then search for it. Check the checkbox and press 'Install' button.