Textmate:jsdoc 评论?
我对 TextMate 还很陌生,我只是不知道如何在编辑 .js 文件时做出 JSDoc 之类的注释。我正在使用 PHP 包,这非常简单 - 我只需输入 doc,然后按 Tab。我已经添加了自定义代码片段,但问题是它无法正确处理新行(它不会插入尾随 *)。
I'm pretty new to TextMate and I just can't figure out how to make JSDoc like comment when editing .js file. I'm using the PHP bundle and there it is pretty easy - I just type doc and then tab. I've already added custom snippet but the problem is that it does not handle new lines properly (it doesn't insert trailing *).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要安装 JSDoc 捆绑包,但看起来可用的东西并不多。快速的谷歌搜索确实带来了一些东西: https://github.com/tysontate/javascript-jsdoc -tmbundle
不知道它是否有任何好处,它实际上说这些命令还不起作用,但它最近似乎至少看到了一些活动(与我发现的其他活动不同)。看起来使用 JS Doc 的人并不多(或者至少没有那么多 TextMate 用户使用它)。
通常,谷歌搜索“某物bundle textmate”会产生正确的结果,但显然 JSDoc 并不常用。
然而,也许有人已经将一些 JSDoc 功能添加到现有的 JavaScript 包中(就像您已经开始做的那样)。没有尝试寻找,但你可能会幸运。
但是,嘿,这是一个很好的借口,可以通过摆弄可用的捆绑包所提供的任何内容,甚至修复一些错误,来亲自动手(并在此过程中学习很多关于 TextMate 的知识)。回馈社区(当然你不必这样做,这只是一个建议)。
没有太多答案,但希望你能从这里找到我们的路
You'll need to install a JSDoc bundle, but it doesn't look like there's much available. A quick google search did bring up something though: https://github.com/tysontate/javascript-jsdoc-tmbundle
No idea if it's any good, and it actually says that the commands don't yet work, but it appears to have seen at least some activity lately (unlike the others I found). It looks like there just aren't that many people who are using JS Doc (or, at least not that many TextMate users who are using it).
Usually, googling for "something bundle textmate" will yield the right results, but apparently JSDoc just isn't that commonly used.
However, maybe someone has added some JSDoc functionality to the existing JavaScript bundle (much like you've started doing). Didn't try looking for that, but you might get lucky.
But hey, it's a good excuse to get your hands dirty (and learn a lot about TextMate in the process) by messing around with whatever the available bundles have to offer, maybe even fixing a few bugs, and giving something back to the community (you don't have to of course, it's just a suggestion).
Not much of an answer, but hopefully you'll find our way from here
包含用于在 TextMate 2 中编辑 JSDoc 注释的工具的更新包可在 https://github.com/ 获取rootworkit/JsDoc-Toolkit.tmbundle
An updated bundle with tools for editing JSDoc comments in TextMate 2 is available at https://github.com/rootworkit/JsDoc-Toolkit.tmbundle