Reputation: 1907
I don't need it telling me I spelled the word "danggit!" incorrectly. I just want it to ignore the comments.
like this:
<?php
$a = 123;// simple as, danggit!
/* danggit, this frustrates me! */
also
"The word 'thru' is informal. Consider replacing it with through."
I dont want to see this, especially in comments
Upvotes: 0
Views: 60
Reputation: 165118
I don't need it telling me I spelled the word "danggit!" incorrectly. I just want it to ignore the comments.
You can configure where this "Typo" inspection should be applied at the following screen: Settings/Preferences | Editor | Inspections | Proofreading | Typo
.
https://www.jetbrains.com/help/phpstorm/spellchecking.html#configure-the-typo-inspection
Danggit, now i'm getting "The word 'thru' is informal. Consider replacing it with through." I dont want to see this, especially in comments.
This is a different thing in action. This time it's Grammar.
Settings/Preferences | Editor | Natural Languages | Grammar and Style
-- Here on a Scopes
tab you can configure the same. https://www.jetbrains.com/help/phpstorm/grammar.html#scope
... or/and configure what rules to use (on a Rules
tab): https://www.jetbrains.com/help/phpstorm/grammar.html#rules
In case if you need to configure too many of them, well... just disable the Grammar checks completely: Settings/Preferences | Editor | Inspections | Proofreading | Grammar
Upvotes: 1