17

I recently moved to Sublime Text 3 for development and trying to figure out a way in which I can know whether a file is saved or not just by looking at it in the editor. For e.g.

  • Eclipse puts a star in front of the file name if there are unsaved changes
  • Notepad++ changes the tab color as red

Is there any such easy to see visual cue in Sublime Text 3 to know if a file has unsaved changes?

Bohuslav Burghardt
  • 33,626
  • 7
  • 114
  • 109
Varun Gupta
  • 2,870
  • 6
  • 33
  • 73
  • Like the people below me have said, there usually is a visual change to the tab when there are unsaved changes. The actual visual cue depends on what theme you are using. It could be a dot or an underline, or whatever the theme creator decided to use. – Saad Sep 28 '15 at 13:25
  • Thanks for all the answers. Feeling a little stupid that I didn't realize the cross turning into a circle when a file has unsaved changes. – Varun Gupta Sep 28 '15 at 13:53

2 Answers2

41

By default Sublime Text displays dot () instead of x used to close tabs when there are unsaved changes.

You can make this highlighting of modified tabs even more distinctive using following property which causes modified tabs to have different color:

{
    "highlight_modified_tabs": true
}

enter image description here

The color of modified tabs with this property enabled will depend on the theme you are using. If you want to change it, either change the theme or change the color manually in your settings. See this answer for more details on that.

Community
  • 1
  • 1
Bohuslav Burghardt
  • 33,626
  • 7
  • 114
  • 109
5

In Sublime text there is a indication on the tabs, a full circle is not saved, a cross (x) is a saved file, indicating that you could close it.

Not saved file:

enter image description here

Saved file:

enter image description here

Mark
  • 6,762
  • 1
  • 33
  • 50