Sublime Text 插件 - 文件和代码块注释

SublimeText注释插件
此SublimeText2/3插件提供便捷命令用于文件及块注释编写,支持C/C++、Go、Python等语言。可通过命令添加当前日期时间、代码块注释和文件注释。

CommonComment

This Sublime Text 2/3 plugin adds some convenient commands to write file/block comments.

项目地址:点我

Commands

  • Add Current Datetime
Example:
2019-03-20 21:10:54
  • Add Code Block Comment

support c/c++/go/python/shell/markdown file

Example:
/** {write comments here} (Alan 2019-03-21 18:00:30) **/
  • Add File Comment

support c/c++/go/python/shell/markdown file

Example:
/**
 * Author:       Alan (gchinaran@gmail.com)
 * Created Time: 2019-03-21 18:02:56
 * File Name:    foo.go
 * Description:  {write file description}
 */

Manual Install

Git clone this repository and place the CommonComment directory into your Packages directory.

OSX:

# Install the plugin
git clone https://github.com/chinaran/enjoy-life.git {your/dir}
cp -r {your/dir}/enjoy-life/sublime_text/CommonComment ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/

Linux:

# Install the plugin
git clone https://github.com/chinaran/enjoy-life.git {your/dir}
cp -r {your/dir}/enjoy-life/sublime_text/CommonComment ~/.config/sublime-text-3/Packages/CommonComment

Settings

You need set your own name and email at CommonComment.sublime-settings

{
	"author_name": "Your Name",
	"author_email": "yours@email.com"
}

Key Bindings

No need to use key binding

You can use sublime text's COMMAND PALETTE

转载于:https://my.oschina.net/u/1416148/blog/3026723

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值