Timestamp Commenter is a Visual Studio Code extension that allows you to easily add a timestamp comment indicating the last modification date and time at the end of your file.
Features
Adds a timestamp comment with the current date and time at the end of the active file.
Simple and efficient way to document file changes.
Works with any file that supports comments.
Usage
Open any file in Visual Studio Code.
Use the command palette (Ctrl+Shift+P or Cmd+Shift+P on macOS) and search for Add Timestamp Comment.
Select the command, and the timestamp comment will be added to the end of the file.
The comment will look like this:
// Last modified: 1/24/2025, 2:30:00 PM
Installation
Open Visual Studio Code.
Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window.
Search for "Timestamp Commenter".
Click "Install" to add the extension.
Alternatively, you can manually install the extension by downloading it and following this guide.
Extension Commands
Command
Description
Add Timestamp Comment
Adds a timestamp comment at the end of the file.
Requirements
No additional dependencies are required to use this extension.
Known Issues
The timestamp is always inserted at the end of the file, which may not suit some workflows. Future versions may allow customizable positions.
Currently supports only single-line comments (//). For other comment styles, additional configuration may be added in later updates.
Contributing
Contributions are welcome! Feel free to submit a pull request or open an issue on GitHub.
Release Notes
1.0.0
Initial release of Timestamp Commenter.
Added support for inserting a timestamp comment at the end of the file.