Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text edits since last save

Tags:

sublimetext2

Can't seem to find anything online. Frequently spend time editing multiple text documents at the same time and loose track of which ones I have edited. When I close I am not always sure whether I have purposefully changed or accidentally edited a character in a file. Would be great to have a feature to show the edits since last save for sublime text.

Seems like such an obvious need that I am surprised that I cannot find anything in features. Am I missing something or am I the only one with this need?

like image 204
Joop Avatar asked Jul 09 '13 18:07

Joop


People also ask

How do I view changes in Sublime Text?

Just right click on the modified window and select Show Unsaved Changes . A pane will show up at the bottom, listing the differences.

Where are sublime text files stored?

Depending on your operating system, this directory is located in: Windows: %APPDATA%\Sublime Text. Mac: ~/Library/Application Support/Sublime Text.

Is there autosave in Sublime Text?

auto-save is available through Sublime Package Control and is the recommended way to install.


2 Answers

I know this already has an accepted answer, but it is not necessary to install FileDiffs or anything else. Just right click on the modified window and select Show Unsaved Changes.

A pane will show up at the bottom, listing the differences. There isn't an obvious way to dismiss the pane, but Ctrl+F will replace it with the search pane again.

like image 127
svenyonson Avatar answered Oct 07 '22 09:10

svenyonson


Add this line to your Preferences.sublime-settings file (If you're on a Mac, then open the Sublime Text 2 menu -> Preferences -> Settings - User):

"highlight_modified_tabs": true

This will highlight tabs that have unsaved changes.

like image 23
James Chevalier Avatar answered Oct 07 '22 08:10

James Chevalier