Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>file-info-keeperNew to Visual Studio Code? Get it now.
file-info-keeper

file-info-keeper

liuteng

|
11 installs
| (1) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

File Info Keeper

📁 智能维护文件头部元信息的 VS Code 扩展 | VS Code Marketplace

(保存文件时自动更新最后修改时间/创建者等信息)

✨ 核心功能

智能注释维护

  • 自动更新:保存文件时自动刷新 Modified 时间戳
  • 多语言支持:JavaScript/TypeScript/Python/Java/HTML/Vue 等
  • 冲突检测:智能识别已有注释块,避免重复生成
  • 转义处理:正确处理包含 ''' """ 的特殊情况

模板定制化

// .vscode/settings.json
{
  "fileInfoKeeper.template": {
    "Author": "{{author}}", //(改成自己名字)
    "Created": "{{created}}",
    "Modified": "{{modified}}",
    "Filename": "{{fileName}}"
  },
  "fileInfoKeeper.enableGit": true,
}

🛠️ 安装使用

快速安装

  • 打开 VS Code 扩展面板 (Ctrl+Shift+X)
  • 搜索 File Info Keeper
  • 点击安装按钮

首次使用指南

/**
 * 创建新文件时会自动生成:
 * Author: LiMing 
 * Created: 2023-08-20 09:30:00 
 * Modified: 2023-08-20 09:30:00
 * Filename: example.js
 */

// 修改后保存文件,Modified 时间自动更新
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft