dylan-k
2/17/2014 - 9:02 PM

LineEndings.sublime-settings

Sublime Text 2 - Display line endings in status bar

  • $ cd ~/.config/sublime-text-2/Packages
  • $ git clone git://github.com/SublimeText/LineEndings.git LineEndings
  • $ cd LineEndings
  • $ wget https://gist.github.com/magnetikonline/5268506/raw/LineEndings.sublime-settings
  • Update ~/.config/sublime-text-2/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"
}