Edit Log
Edit Log helps you track the length of your writing in VS Code. Open a file to see how many characters you added or deleted each day, the file's total character count, and how that total changed since the previous entry. You can also see the combined character count for all files in the current folder.
The status bar shows the latest saved character count for the current file. When you select text, it temporarily shows the number of selected characters instead.
Your history stays connected when you rename or move a file or folder within VS Code. You can also export your history to a CSV file for backup and import it again later.
Key Features
- Character Counts: See the number of characters in the current file. Spaces, tabs, and line breaks are not counted.
- Japanese and Emoji Support: Japanese text, emoji, and other languages are counted correctly.
- Folder Total: See the combined character count for all files in the current folder.
- Choose Which Files to Count: Use a checklist to include or exclude files from the folder total. Edit Log remembers your choices for each workspace.
- Daily Writing History: See how many characters you added or deleted each day, along with the file's total character count.
- Change Since the Previous Entry: The Diff column shows how much the total increased or decreased since the previous entry.
- File and Selection Counts: The status bar normally shows the latest saved character count for the current file. When you select text, it shows the total number of selected characters instead.
- History After Renaming or Moving: When you rename or move files and folders within VS Code, their history and folder settings move with them. Changes made outside VS Code are not detected automatically.
- Matches Your VS Code Theme: The view uses VS Code's colors and icons so that it fits naturally into the editor.
- Backup and Restore: Export your history to a CSV file and import it again when needed.
How to Use
- Open the Explorer from the Files icon on the left side of VS Code. The EDIT LOG view appears inside the Explorer. If it is hidden, right-click the Explorer title bar and make sure EDIT LOG is checked.
- Click the EDIT LOG title to open the view.
- Open a text file to see its character count and the total for its folder.
- To choose which files are included in the folder total, click the checklist icon next to the folder name. Check or uncheck each file as needed.
- To include or exclude every file at once, use the Toggle All Files checkbox.
- Save your file to record the day's changes. Edit Log updates the same day's entry each time you save.
- Look at the left side of the status bar to see the latest saved character count for the current file. Select some text to see its character count instead. Clear the selection to return to the file count.
- To back up or restore a file's history, click the ... button in the EDIT LOG title bar and choose Export File History or Import File History.
- Rename or move files and folders from within VS Code to keep their history and folder settings connected. If you make these changes outside VS Code, use the export and import commands to move the history manually.
View changes to a file over time
Choose which files are included in the folder total
File and selection character counts in the status bar
Back up and restore a file's history
How Characters and Changes Are Counted
Edit Log checks for changes whenever you save a file. It compares the saved text with the previous version and counts added and deleted characters separately. For example, if you replace 5 characters with 8 characters, Edit Log records 5 deleted characters and 8 added characters, rather than showing only an increase of 3.
To make this faster, Edit Log skips text at the beginning and end of the file that has not changed. This also works well when you use VS Code's automatic save feature.
If the same text is deleted from one place and added somewhere else, Edit Log treats it as moved text instead of new or deleted writing. This works when the move is saved at once or completed in the next save shortly afterward. If the same text appears more than once, each matching piece is handled only once.
Visible characters are counted as people normally read them. For example, Japanese characters, emoji, and characters made from combined symbols each count as one character.
The following are not included in Del, Add, or Total:
- Regular and full-width spaces
- Tabs
- Newline characters