Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

  • 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?

like image 307
Varun Gupta Avatar asked Sep 28 '15 12:09

Varun Gupta


People also ask

Where does sublime store unsaved files Linux?

For linux, ~/. config/sublime-text-3/Local/ . The unsaved sessions can be found at "Auto Save Session. sublime_session".

Where does Sublime Text save files?

In Windows, cache files are stored in a separate location, %LOCALAPPDATA%\Sublime Text 3, to improve performance with roaming profiles. Cache files are stored in a separate location: Windows: %LOCALAPPDATA%\Sublime Text. Mac: ~/Library/Caches/Sublime Text.

Where does sublime store unsaved files Mac?

Sublime Text 2 stores the files in ~/Library/Application Support/Sublime Text 2/Settings , in the . sublime_session files that are located there. The contents of those files are a large JSON blob that contains the individual tab contents.


1 Answers

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.

like image 140
Bohuslav Burghardt Avatar answered Oct 20 '22 10:10

Bohuslav Burghardt