Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Line Save TrackerNew to Visual Studio Code? Get it now.
Line Save Tracker

Line Save Tracker

Olin

|
2 installs
| (0) | Free
Visual Studio style saved and unsaved line markers, since opening a file.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Line Save Tracker

See 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

Action Indicator
Edit a line Orange: unsaved change
Save the file Green: saved since this file was opened
Edit that line again Orange until the next save
Undo an edit Marker updates to reflect the current text
Close and reopen the file Start a new tracking session

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.

Install

Search 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

Setting Default Description
lineSaveTracker.enabled true Turn session markers on or off.
lineSaveTracker.savedColor #49A65A Color of saved changes.
lineSaveTracker.unsavedColor #E7A13A Color of unsaved changes.

For example, in settings.json:

{
  "lineSaveTracker.savedColor": "#49A65A",
  "lineSaveTracker.unsavedColor": "#E7A13A"
}

Reload the VS Code window after changing either color.

Scope and current limitations

  • Tracks regular local text files during the current open session. Closing the file clears its markers; no source code or edit history is uploaded.
  • If the extension starts while a file is already open, the content at startup becomes its starting point. Reopen the file to start from a fresh baseline.
  • For a very large replacement, indicators can cover the whole changed block.
  • Markers may share gutter space with breakpoints and other decorations.

中文说明

Line Save Tracker 在 VS Code 的行号旁和右侧滚动条显示本次打开文件后的修改: 橙色表示尚未保存,保存后变成绿色;再次修改同一行则重新变橙色。 关闭文件后清除标记,重新打开时开始新的一轮跟踪。它不依赖 Git,普通本地文本文件也能使用。

在 VS Code 扩展页面搜索 Line Save Tracker 安装。安装本地 VSIX 时, 点击扩展页面右上角 … → Install from VSIX… 并选择安装包。 如果有其他显示修改行的扩展,建议先禁用其重叠的标记。

Development

The extension uses the VS Code extension API and Node.js without runtime dependencies. Run node test.js to check line classification and python3 package_vsix.py to build a local VSIX.

License: MIT.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft