Textmate 中的拼写检查代码注释
有谁知道我可以用来对代码中的注释进行拼写检查的插件吗?
我总是做这样的事情
//Retrns porduct name in upercase
function getUpperCaseProductName(){
var productName = Myobj.currentProduct.data.name;
return productName.toUpperCase();
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不知道有 textmate 插件,但我很确定它已经通过“编辑 → 拼写”来完成此操作,默认情况下启用评论。首先检查您是否没有关闭评论功能,或设置为错误的语言。
不太可能有人会开发自定义插件来完成 Textmate 已经具备的功能。
顺便说一句,上面给出的 //Retrns 示例连接到两个斜杠。字典中没有一个单词开头有两个斜杠,因此可能会因此而丢失。如果这是问题所在,请向文本伙伴提交错误报告,或者如果它让您很烦恼,则可以考虑转向功能更丰富的编辑器(PHPStorm 可以很好地识别该拼写错误,如果您想变得非常挑剔,您还可以检查变量和函数的名称)。
I don't know of a textmate plugin, but I'm pretty sure it does this already via Edit → Spelling, which is enabled by default for comments. Start by checking that you don't have this turned off for comments, or set to the wrong language.
It's unlikely that someone will develop a custom plugin to do something that textmate already has as a feature.
BTW, the //Retrns example you give above is joined to the two slashes. No word in the dictionary has two slashes at the start, so it may be missing it for this reason. If this is the problem, file a bug report with the textmate guys, or perhaps consider moving to a more feature-rich editor if it bothers you a lot (PHPStorm picks up that typo just fine, and you can also check the names of variables and functions if you want to be really pernickety).
尝试使用 Textmate2 中编辑下的拼写选项。
我认为它不区分拼写检查的代码和注释。
Try using the Spelling option under Edit in Textmate2.
I think it does not differentiate between code and comment for Spell Check.