how to add custom words to "Typo" inspection?

I did: Settings->Spelling->Add->"mytest"->Apply

But in the code, the function named "function mytest () {....}" has still the "mytest" part underlined and on hover it says "Typo in word 'mytest'"

How to set it up?

2 comments

Hi there,

If you are adding it manually like this, thet you have to restart PhpStorm (at very least close and reopen project) to see the changes.

Correct way would be to use context menu (right click on typo | Spelling | Add to dictionary) or via Alt+Enter quick fix/intention -- add it from there and it will recognize them instantly.

0

Please sign in to leave a comment.