Maurício Szabo f1951af3e2 Fixed specs on grammar and line ending | 1 年之前 | |
---|---|---|
.. | ||
lib | 7f38e3f641 Line ending selector refactor (#20542) | 3 年之前 |
spec | f1951af3e2 Fixed specs on grammar and line ending | 1 年之前 |
.gitattributes | 556adbfa65 ➡️ Migrate core package 'line-ending-selector' into ./packages (#18239) | 6 年之前 |
.gitignore | 556adbfa65 ➡️ Migrate core package 'line-ending-selector' into ./packages (#18239) | 6 年之前 |
README.md | e5c40b5f35 rebrand and relicence | 1 年之前 |
package-lock.json | aecb3cc5c3 add or update packages/*/package-lock.json | 1 年之前 |
package.json | 4808b53cb0 remove 'standard' linter from packages | 1 年之前 |
This is an Pulsar package that displays the current line ending type of a file: CRLF
(Windows), LF
(Unix), or Mixed
(both). It also lets you change the line ending of a file.
When the package is activated it will show the current line ending of the file in the right side of the status-bar. If a new file is created the line ending will start with the system default: CRLF
for Windows, LF
for Mac and Linux, and CR
for old-style Mac files. If a file contains multiple line-ending types it will display Mixed
.
You can click the line ending in the status-bar to open a modal with the line ending options. Selecting a different line ending will change each line of the file in the active editor.
Line Endings
LF
is "\n"CRLF
is "\r\n"Note: Because the CR
line ending style is not used in any modern operating system, this package only supports converting from CR
line endings not to it.
You can also change a file's line endings by using or cmd-shift-P searching for these commands:
line-ending-selector:convert-to-LF
line-ending-selector:convert-to-CRLF