-
Notifications
You must be signed in to change notification settings - Fork 18
Add setting to set default line-endings for new files #5
Comments
👍 Would be awesome because having to convert from CRLF to LF for every new file I create is getting tedious. |
I would also like to see this. |
I am too a Windows user looking for a way to set default to LF. Thanks in advance! |
👍 In fact, we don't need a setting. Just make sure the default is always LF. It's not 1995 anymore, even Windows can now handle ".cmd" batch files with LF line endings. |
I think |
👍 |
Please add this, it's pretty easy to forget to set it to LF from CRLF when making new files. |
I would also like to have this setting!
And install the following plugin https://github.com/sindresorhus/atom-editorconfig |
Thanks for sharing @davidspiess, will look into that. + in the meantime, let's wait for an update on PR #7? |
i have solution now. You can change the default line ending setting for new files within Atom. Atom version 1.0.8 introduced the line ending selector package which allows you to change the line ending setting for the current file by selecting LR (Unix based) or CRLF (Windows based) within the Atom status bar. This is useful for existing files, but by default for new files the package will use the OS default (LF on Unix, CRLF on Windows). It is recommended in general that you use LF line endings throughout. To change the default line endings for new files, follow these steps: Select File->Settings reference: http://developmentsindigital.com/atom/2016/08/27/setting-atom-default-line-endings/ |
This is useless if you want to change the line ending on just a single line, which seems to be impossible in Atom. |
Hi, I work on Windows but always use just LF. Since this landed all my new files are by default CRLF which is not what I want.
Please add a setting to override the platform default for new files. Actually, ideally, an override per file extension type :)
The text was updated successfully, but these errors were encountered: