Varun Gupta
Varun Gupta

Reputation: 3112

Visual cue to know whether a file has unsaved changes in Sublime Text editor

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.

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

Upvotes: 17

Views: 4553

Answers (2)

Bohuslav Burghardt
Bohuslav Burghardt

Reputation: 34776

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.

Upvotes: 41

Mark
Mark

Reputation: 6855

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

Upvotes: 5

Related Questions