Sublime Text 2 评论/文档块 [英] Sublime Text 2 Comment/Doc Block

查看:39
本文介绍了Sublime Text 2 评论/文档块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我决定尝试使用 Sublime Text 2 作为 TextMate 的替代品(确实如此).我非常喜欢它,但唯一困扰我的问题是按下Enter"后它不会继续 PHP 注释/文档块.

Recently, I decided to try out Sublime Text 2 as a TextMate alternative (which it is). I'm absolutely loving it but the only issue that bugs me is that it doesn't continue the PHP Comment/Doc Block upon pressing "Enter".

它只是添加新的空行而不是以*"开头的行,如下所示http://cl.ly/AFcP/o

It just adds new blank lines instead of lines starting with "* " as seen here http://cl.ly/AFcP/o

有没有办法解决这个问题?我尝试为它做一个键绑定,但对我来说太复杂了,尤其是因为我对编辑器没有太多经验.

Is there a solution to this? I tried doing a key binding for it but it was just too complicated for me, especially because I'm not too experienced with the editor.

提前致谢.

推荐答案

现在有了更好的解决方案:

And now an even better solution has become available:

https://github.com/spadgos/sublime-jsdocs

它被称为 DocBlockr,它有 PHPDoc 支持.它会根据函数参数自动添加 doc 块.不错...

It is called DocBlockr, and it has PHPDoc support. It automatically adds the doc block based on the function parameters. Nice...

这篇关于Sublime Text 2 评论/文档块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆