show unsaved changes for document in gutter (kinda like git)
we now use vscode git diff which give us much more flexibility in showing the changes & also allows you to always get the same experiance regardless of the opened file.
-
filedocsfile case diff provider tracked native new + staged custom untracked custom gitignored custom non-repo custom -
vscode-userdatadocs (vscode settings/keybings) "custom". -
untitleddocs "use the custom gutter & overview ruler". -
commands to jump between changes (
Go To Prev/Next Change) -
clear the current doc indicators (
Clear Diff Indicators)- incase you want to keep
showUnsavedChanges.clearOnSave: offbut the file changes became too noisy.
- incase you want to keep
- show
added/changed/deletedlines indicators in gutter & overview ruler deletedlines can be accessed through the "gutter comment icon"- indicators persist after
saveso you can track what happened to the file (no git needed); clear them withClear Doc Indicatorsor setclearOnSave: true - remove indicators on file
close
gitmust be installed globally because we usegit diffto get the changes
