Skip to content

Instantly share code, notes, and snippets.

@magnetikonline
Last active October 20, 2021 18:18
Show Gist options
  • Save magnetikonline/5268506 to your computer and use it in GitHub Desktop.
Save magnetikonline/5268506 to your computer and use it in GitHub Desktop.
Sublime Text 3 - Display file line ending details in status bar.

Sublime Text 3 - Display line endings in status bar

$ git clone [email protected]:titoBouzout/LineEndings.git ~/.config/sublime-text-3/Packages/LineEndings
$ cd ~/.config/sublime-text-3/Packages/LineEndings
$ curl https://gist.github.com/magnetikonline/5268506/raw/LineEndings.sublime-settings

Now update ~/.config/sublime-text-3/Packages/LineEndings/LineEndings.sublime-settings to suit.

{
// To show line endings type on status bar
"show_line_endings_on_status_bar": true,
// show an alert when the line ending is on the list
// eg: "alert_when_line_ending_is": ["Windows","Unix","CR"]
"alert_when_line_ending_is": ["Windows"],
// auto convert line endings on file open
"auto_convert_line_endings_to": "Unix"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment