/**
* Add custom image sizes attribute to enhance responsive image functionality
* for post thumbnails
*
* @since Twenty Sixteen 1.0
*
* @param array $attr Attributes for the image markup.
* @param int $attachment Image attachment ID.
* @param array $size Registered image size or flat array of height and width dimensions.
* @return string A source size value for use in a post thumbnail 'sizes' attribute.
*/
这个代码是wordpress中的,请问,这样的注释有专门的插件来产生?
先生成
/**
*
*
×/
然后再填写内容,还是每次需要生成注释的时候,就一个一个字符的敲?
应当有好的办法生成注释吧?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
https://github.com/tpope/vim-...
https://github.com/scrooloose...
把这个加入~/.vimrc 然后文件按F4就能加上
安利一个支持vim的在线运行代码网站:https://www.bytelang.com/
编辑器插件
例如,docblockr
按ctrl + V ,将光标竖着移到你要注释的文档最后一行,再shift + I,输入你要注释的字符,比如C语言是//,PHP也是//,shell是#,输完之后按ESC,这时vim就帮你在每一行的行首插入了你输入的注释字符,不懂的发邮件问我songmengke@yeah .net