Eirik Bakke created NETBEANS-2493:
-------------------------------------

             Summary: Allow default line ending for new files within in a 
project to be customized (or autodetected)
                 Key: NETBEANS-2493
                 URL: https://issues.apache.org/jira/browse/NETBEANS-2493
             Project: NetBeans
          Issue Type: Improvement
          Components: editor - Settings
    Affects Versions: 11.0
         Environment: Primarily relevant for NetBeans users on Windows 10 who 
want to preserve unix line endings (or users on MacOS who want to preserve 
Windows line endings).
            Reporter: Eirik Bakke


Editing and saving existing text files (e.g. Java files), the NetBeans editor 
correctly preserves the file's line ending style (Linux/UNIX/OSX "\n" vs. 
Windows "\r\n"). However, creating a new file always seems to use the 
platform-default line ending.

It would be useful to be able to customize the line ending style on the project 
level, or alternatively autodetect the line ending used when the project is in 
a git repository (git's "eol" config property). Right now, after creating a new 
file in NetBeans, I always end up having to change the line endings with an 
external tool and then re-opening the file in NetBeans.

(In my own case, my main machine is Windows 10, but my git repository is 
configured to accept only UNIX line endings, via "core.autocrlf=false", 
"core.safecrlf=true", and "core.eol=lf". Accidentally committing files with 
inconsistent line endings is a major pain.)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to