Convert Figma logo to code with AI

OBKoro1 logokoro1FileHeader

VSCode插件:自动生成,自动更新VSCode文件头部注释, 自动生成函数注释并支持提取函数参数,支持所有主流语言,文档齐全,使用简单,配置灵活方便,持续维护多年。

5,565
265
5,565
71

Top Related Projects

:mega: Help Wanted - Looking for Maintainer: https://github.com/Glavin001/atom-beautify/issues/2572 | :lipstick: Universal beautification package for Atom editor (:warning: Currently migrating to https://github.com/Unibeautify/ and have very limited bandwidth for Atom-Beautify Issues. Thank you for your patience and understanding :heart: )

Quick Overview

Koro1FileHeader is a VSCode extension that automatically adds customizable file headers and function comments to your code files. It supports multiple programming languages and provides various configuration options to tailor the headers and comments to your project's needs.

Pros

  • Supports a wide range of programming languages
  • Highly customizable header and function comment templates
  • Automatic update of last modified time in file headers
  • Integrates seamlessly with VSCode and respects user-defined keyboard shortcuts

Cons

  • Limited to VSCode, not available for other IDEs or text editors
  • May require initial setup and configuration to match specific project requirements
  • Some users report occasional issues with certain language-specific features

Getting Started

  1. Install the extension from the VSCode marketplace
  2. Open your VSCode settings (JSON) and add the following configuration:
"fileheader.customMade": {
    "Author": "Your Name",
    "Date": "Do not edit",
    "LastEditors": "Your Name",
    "LastEditTime": "Do not edit",
    "Description": ""
},
"fileheader.cursorMode": {
    "description": "",
    "param": "",
    "return": ""
}
  1. Use the keyboard shortcut Ctrl+Alt+i (Windows/Linux) or Ctrl+⌘+i (Mac) to insert a file header
  2. Use the keyboard shortcut Ctrl+Alt+t (Windows/Linux) or Ctrl+⌘+t (Mac) to insert a function comment

For more detailed configuration options, refer to the extension's documentation on GitHub.

Competitor Comparisons

:mega: Help Wanted - Looking for Maintainer: https://github.com/Glavin001/atom-beautify/issues/2572 | :lipstick: Universal beautification package for Atom editor (:warning: Currently migrating to https://github.com/Unibeautify/ and have very limited bandwidth for Atom-Beautify Issues. Thank you for your patience and understanding :heart: )

Pros of atom-beautify

  • Supports a wide range of programming languages and file types
  • Offers extensive customization options for formatting rules
  • Integrates well with the Atom text editor ecosystem

Cons of atom-beautify

  • May have performance issues with large files or projects
  • Requires separate beautifier packages for some languages
  • Configuration can be complex for beginners

Code comparison

atom-beautify:

beautify.beautify(editor).then(function() {
  console.log('Beautification complete');
}).catch(function(error) {
  console.error('Error beautifying:', error);
});

koro1FileHeader:

vscode.commands.registerCommand('extension.fileheader', function () {
    fileheader.cursorTip();
    fileheader.headerPattern();
});

Summary

atom-beautify is a versatile code formatting tool for Atom, supporting multiple languages and offering extensive customization. However, it may face performance issues with large files and require additional setup for certain languages. koro1FileHeader, on the other hand, focuses on adding file headers and is primarily designed for VS Code. While it has a more specific use case, it's generally simpler to set up and use for its intended purpose.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

koroFileHeader

koro1FileHeader Repo stars wiki文档详细 持续维护 cicd 开源协议-MIT

简介

  1. VSCode插件: 用于一键生成文件头部注释并自动更新最后编辑人和编辑时间、函数注释自动生成和参数提取。
  2. 插件可以帮助用户养成良好的编码习惯,规范整个团队风格。
  3. 从2018年5月维护至今, 关闭issue 500+ ,拥有39.7w+的用户,VSCode图表统计日均安装200-500
  4. 经过多版迭代后,插件支持所有主流语言,灵活方便,文档齐全,食用简单!
  5. 觉得插件不错的话,就给个Star⭐️吧~

主要功能

  1. 自动生成文件头部注释,自动更新最后编辑人、最后编辑时间等。
  2. 一键生成函数注释,支持函数参数自动提取并列到注释中。
  3. 支持添加佛祖保佑永无bug、神兽护体、甩葱少女等好玩有趣的图像注释
  4. 配置非常灵活方便,各种细节都能配置,可以量身打造适合你的注释。
  5. 支持所有主流语言, 配置文档非常详细,齐全。

使用效果:

头部注释和注释图案

example.gif

函数注释: 自动提取函数参数

  1. 支持主流语言自动提取函数参数

koroFileHeader函数参数提取

  1. 多行函数参数支持自动提取

多行函数参数自动提取参数

注释图案

支持一键添加佛祖保佑永无BUG、神兽护体等注释图案

添加注释图案

安装和快速上手

安装和快速上手

快速查看插件功能与配置方法

功能目录:查看配置右侧自动生成的markdown目录,浏览所有最新最全的功能。

配置简介:配置字段

Wiki文档

安装和快速上手

支持语言

插件设置/配置

配置字段

更新日志

常见问题

佛祖保佑永无BUG、神兽护体等注释图案

我的其他开源推荐

stop-mess-around

减少摸鱼的时间和频率的Chrome插件:**在上班/学习期间很容易下意识的打开摸鱼网站,插件帮助我们减少摸鱼的时间和频率,提高我们上班和学习的效率,节省时间用于学习提升自己或者享受生活**。

AutoCommit

这是一个用于Git自动commit的VSCode插件,它可以用来补充之前忘记提交commit,帮助你把首页的绿色格子填满。

web-basics

收集和整理了一个大厂前端需要掌握能力的仓库。

其中分为JS基础能力,大厂场景题、大厂面试真题。

希望能够帮助大家提升自己的能力,在面试的时候能够游刃有余,轻松拿到高薪offer。

大厂前端需要掌握的能力

用爱发电,求赞助 😭

开源不易,本插件的开发与维护全都是利用业余时间。

如果觉得这个效率工具还不错, 对你有所帮助,就赞助支持一下我的工作吧。

请我喝杯水吧,十块八块不嫌多,三块五块不嫌少 ❤️

赞助

License

MIT

求Star

如果觉得还不错的话,就给个 Star ⭐️ 鼓励一下我吧~

联系我

掘金、前端进阶积累、公众号、GitHub、微信:OBkoro1、邮箱:obkoro1@foxmail.com