Reputation: 18427
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
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:
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):
For more git-related packages, just search Package Control.
Upvotes: 3