Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CodeStampNew to Visual Studio Code? Get it now.
CodeStamp

CodeStamp

Prince Garg

| (1) | Free
Automatically adds comments with author name and timestamp on save
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CodeStamp VS Code Extension

CodeStamp is a smart productivity extension for VS Code that automatically signs and timestamps your code changes. It helps track who changed what and when, keeping a history directly in your source code.

Key Features

1. Smart Commenting

CodeStamp intelligently detects the type of change you make:

  • Single Line Changes: Appends a comment to the end of the line.

    const visible = true; // user | 12/30/2025, 2:30:00 PM
    
  • Block Changes (Multi-line): Automatically wraps new code blocks with Start and End markers.

    // Start user | 12/30/2025, 2:45:00 PM
    function newFeature() {
        console.log("This is a new block");
    }
    // End user | 12/30/2025, 2:45:00 PM
    

2. Intelligent Clustering

If you paste a large function or make edits to adjacent lines separated by whitespace, CodeStamp groups them into a single block instead of cluttering every line with comments.

3. Smart Cleanup

When CodeStamp wraps your code into a block (creating Start/End markers), it automatically removes any existing inline CodeStamp comments within that block to keep your code clean and duplicate-free.

4. Multi-Language Support

Supports syntax for major languages:

  • //: JavaScript, TypeScript, C, C++, Java, C#, Go, Rust, JSONC (e.g. tsconfig.json)
  • #: Python, YAML, Shell, Dockerfile, Makefile
  • <!-- -->: HTML, XML
  • /* */: CSS, SCSS, Less
  • REM: Batch Files

Excluded Files

To prevent errors and maintain file integrity, CodeStamp automatically skips:

  • Strict JSON files (e.g., package.json, .json files without comments support).
  • Lock files (package-lock.json, yarn.lock, pnpm-lock.yaml).

Note: JSON files that support comments (like tsconfig.json, .jsonc, or .vscode/settings.json) are supported.

Usage

  1. Install the extension.
  2. Edit any file.
  3. Save (Cmd+S / Ctrl+S).
  4. CodeStamp handles the rest!

Configuration

Set Author Name

By default, the author name is set to User. You can change this easily:

  1. Open Command Palette (Cmd+Shift+P / Ctrl+Shift+P).
  2. Run "CodeStamp: Set Author Name".
  3. Enter your name.

Alternatively, edit codestamp.authorName in VS Code Settings.

Requirements

No external dependencies are required.

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