yuvi
yuvi

Reputation: 18427

sublime text - coloring files according to their revision status

Other editors, such as PyCharm and Atom offer a feature where files are colored differently according to their status on git (one color marks a file as modified, another as unrevisioned, etc.). This is an extremely useful feature. Is there a way to get that on sublime as well? The two other editors I've mentioned are just too heavy to be enjoyable.

Upvotes: 1

Views: 2269

Answers (1)

MattDMo
MattDMo

Reputation: 102852

Check out the Git plugin, available via Package Control. Among many other things, it shows the current branch and the status of the file in Sublime's status bar:

git status bar

Here are the status bar symbols:

{
    "modified": "≠", 
    "added": "+", 
    "deleted": "×", 
    "untracked": "?", 
    "conflicts": "‼", 
    "renamed":"R", 
    "copied":"C", 
    "clean": "√", 
    "separator": " "
}

which can be changed in the package's settings.

Additionally, you might be interested in the GitGutter package, which indicates added, removed, and changed lines in the gutter (to the left of the line numbers):

GitGutter

For more git-related packages, just search Package Control.

Upvotes: 3

Related Questions