[英]spellchecking code comments in Textmate
Does anyone know of a plugin I can use to spell check the comments in my code? 有人知道我可以用来对代码中的注释进行拼写检查的插件吗?
I'm always doing things like this 我一直在做这样的事情
//Retrns porduct name in upercase
function getUpperCaseProductName(){
var productName = Myobj.currentProduct.data.name;
return productName.toUpperCase();
}
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. 我不知道Textmate插件,但是我很确定它已经通过Edit→Spelling进行了此操作,默认情况下已启用该功能以进行注释。 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. 不太可能有人会开发自定义插件来执行textmate已经具有的功能。
BTW, the //Retrns example you give above is joined to the two slashes. 顺便说一句,您在上面给出的// Retrns示例已加入两个斜杠。 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).
如果这是问题所在,请与同伴一起提交错误报告,或者如果困扰您很多,则可以考虑使用功能更丰富的编辑器( PHPStorm会很好地识别该拼写错误,并且您还可以检查变量的名称)和功能,如果您真的想成为永久性的人)。
Try using the Spelling option under Edit in Textmate2. 尝试使用Textmate2中“编辑”下的“拼写”选项。
I think it does not differentiate between code and comment for Spell Check. 我认为它不会区分拼写检查的代码和注释。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.