Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Front Matter Automatic Date & TimeNew to Visual Studio Code? Get it now.
Front Matter Automatic Date & Time

Front Matter Automatic Date & Time

Strappazzon

|
2 installs
| (0) | Free
| Sponsor
Automatically add creation time and update last modified time in the Front Matter when saving a Markdown file.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Front Matter Auto Date & Time

A Visual Studio Code extension that automatically adds creation time and updates last modified time in the Front Matter when saving a Markdown file.

Limitations and Known Issues

  • All comments in the Front Matter are removed on save

Settings

This extension contributes the following settings:

Setting Description Type Default
front-matter-auto-datetime.enable Enable or disable the extension globally. Boolean true
front-matter-auto-datetime.format See the Day.js docs for valid formats. String YYYY-MM-DDTHH:mm:ss[Z]
front-matter-auto-datetime.includes Patterns for files that will get updated. String[] ["**/*.md"]
front-matter-auto-datetime.prop.date Front Matter property name used for the creation date. Set to false to disable. String date
front-matter-auto-datetime.prop.lastmod Front Matter property name used for the last modified date. Set to false to disable. String lastmod

Demo

Extension demo

Contributing

If you are interested in contributing directly to this repository, please see:

  • Contribution Guidelines
  • Code of Conduct
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft