Line Save TrackerSee what you changed since opening a file, and whether you saved it. Line Save Tracker brings Visual Studio style edit markers to VS Code. An orange mark shows a change that has not been saved yet. Save the file and it turns green. Edit that line again and it turns orange. You can see the same marks by the line numbers and in the overview ruler beside the scrollbar, so edits are easy to find in a long file. It tracks your editing session, independently of Git. This is useful when you want to find the lines you touched today, even in a file outside a repository or in a project with many changes since the last commit. How it works
Inserted, modified, and deleted lines are tracked. For a deleted line, the marker appears at the nearest surviving line. If you restore the original text, the saved-change marker disappears. InstallSearch for Line Save Tracker in VS Code's Extensions view and select Install. For a local VSIX, open Extensions → … → Install from VSIX… and select the package. Reload the window when prompted, then open a text file. If you use another change-marker extension, disable its overlapping markers to make the colors easy to distinguish. Settings
For example, in
Reload the VS Code window after changing either color. Scope and current limitations
中文说明Line Save Tracker 在 VS Code 的行号旁和右侧滚动条显示本次打开文件后的修改: 橙色表示尚未保存,保存后变成绿色;再次修改同一行则重新变橙色。 关闭文件后清除标记,重新打开时开始新的一轮跟踪。它不依赖 Git,普通本地文本文件也能使用。 在 VS Code 扩展页面搜索 Line Save Tracker 安装。安装本地 VSIX 时,
点击扩展页面右上角 DevelopmentThe extension uses the VS Code extension API and Node.js without runtime
dependencies. Run License: MIT. |