TextMate supports ‘Check Spelling as You Type’ which works great for strings. but does not validate code comments.
I have come across a lot of code with typos in the comments.
The solution is simple. Create a Preference Item that checks spelling for all languages.
Here’s how :
1. Go to: ‘Bundles’ → ‘Edit Bundles’ from the Menu bar
2. Navigate to the the ‘Source’ bundle
3. Create a New Item, from the File menu (or command N)
4. Choose ‘Settings’ from the drop down and click the Create button
5. Name the Setting: Spell Checking: Enable for Comments
6. Add the following to the Scope Selector: comment.block, comment.line
7. Add the following code to the body { spellChecking = 1; }
8. Save and you’re all set!
Here’s some more information on creating Preferences Items in TextMate:
manual.macromates.com – Preferences Items





Comments are closed.