This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 151262

Summary: Ability to set the line delimiter of Editor and convert line delimiter of a file
Product: editor Reporter: desmond_kirrane <desmond_kirrane>
Component: Formatting & IndentationAssignee: issues@editor <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description desmond_kirrane 2008-10-24 12:19:48 UTC
In Eclispe you can set the line delimiter used to Windows, MacOS or Unix.
(e.g. Window > Preferences > General > Workspace > 'New text file line delimiter' > Other > Unix)

In Eclispe you can also convert an existing files to delimiter
To convert existing files, open file for editing and for the currently edited file, go to the menu:
(File -> Convert Line Delimiters To > Unix)


NetBeans is not a powerful.
http://wiki.netbeans.org/FaqEditorEOLs
For existing files NetBeans uses line separator of the first line.
For new files (constructed from templates) the editor uses platform-default line separator.
Comment 1 Petr Dvorak 2008-10-25 18:42:49 UTC
This is already requested, thank you.

*** This issue has been marked as a duplicate of 72515 ***