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?

0

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

Both methods work, thanks!

0

请先登录再写评论。