Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>file-commentNew to Visual Studio Code? Get it now.
file-comment

file-comment

jaceanwan

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

file-comment README

给js文件添加文件头

/*  header-comment
/*  file   : aaa
/*  author : jacean
/*  date   : 2017-1-1 16:20:22
/*  last   : 2017-1-1 18:17:28
*/

Features

vscode启动后,当打开js文件时插件自动启动 插入注释方法:

  1. 当执行命令add header
  2. ctrl+alt+h

Requirements

Extension Settings

This extension contributes the following settings:

  • filecomment.author: "jacean",
  • filecomment.headerTemplate: "/* header-comment\r\n/* file : &FILE&\r\n/* author : &AUTHOR&\r\n/* date : &DATE&\r\n/* last : &LAST&\r\n*/\r\n"

Known Issues

Release Notes

Users appreciate release notes as you update your extension.

1.0.0

第一版,完成基本功能.

  • 添加文件头,包括:file,author,date,last
  • 保存文件时更新file(避免code之外更改文件名造成不匹配)和last
  • 绑定快捷键ctrl+alt+h实现文件头快速插入

打包

npm install -g vsce vsce package

然后在vscode中执行命令

install from vsix

重启后就可以用了

参考

vscode编写插件详细过程 VsCode插件:七牛图床工具,写文章更快一步

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