Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Timestamp CommentorNew to Visual Studio Code? Get it now.
Timestamp Commentor

Timestamp Commentor

Kanwal Mehreen

|
7 installs
| (0) | Free
A plugin to add a timestamp comment at the end of files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Timestamp Commenter

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

  1. Open any file in Visual Studio Code.
  2. Use the command palette (Ctrl+Shift+P or Cmd+Shift+P on macOS) and search for Add Timestamp Comment.
  3. 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

  1. Open Visual Studio Code.
  2. Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window.
  3. Search for "Timestamp Commenter".
  4. 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.

Developed with ❤️ using Visual Studio Code.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft