Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Header Comment InserterNew to Visual Studio Code? Get it now.
Header Comment Inserter

Header Comment Inserter

colonialkreeper

| (0) | Free
Inserts header comments to every java file.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Comment Inserter

Comment Inserter is a VS Code extension that automatically inserts header comments into Java files, including author name, date, and file name.


Features

  • Automatically inserts a comment at the top of Java files.
  • Configurable author name.
  • Optionally include the current date.
  • Optionally include the file name.
  • Works on file creation and via command palette.

Usage

  • The extension automatically inserts a comment when a .java file is created.
  • You can also manually insert a comment via the Command Palette:

Ctrl+Shift+P -> Insert Comments

Configuration

Set your preferences in your VS Code settings.json:

{ "commentInserter.authorName": "Your Name", "commentInserter.includeDate": true, "commentInserter.includeFileName": true }

Options:

  • authorName – The author name inserted in the comment.
  • includeDate – Include the current date in the comment.
  • includeFileName – Include the file name in the comment.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft