Is it possible to disable IdentifierTypo but only for a specific word (or set of words)?
When disabling the IdentiferTypo error, is there a way to specify a word or set of words that are explicitly allowed to be outside of the dictionary (but still catch other unintended misspellings)?
For instance, I have a file in which I use names like “XYZ” “XY” etc frequently and I would like to be able to use them throughout the whole file without marking each of them at the spot with “disable once” but if I disable them across the whole file (which is what I currently have) it's possible that there could be actual typos/misspellings in there that I don't catch.
Is that a thing?
Thanks!
Please sign in to leave a comment.
Alternately, is there a way to add entries into the dictionary but for a specific file only? I know this is a kinda weird request but I figured I'd check if there was a mechanism for this already. Thanks again :)
I already request for this a few months ago. Vote for it 😉
https://resharper-support.jetbrains.com/hc/en-us/requests/4507323
Josh The only way right now is to add specific names to the global exclusion list. I understand this is not exactly what you're after, but still should help with redundant grammar highlightings, right?
Philwave I would love to! That link is a 404 to me, though 🙁
Igor Akhmetov The problem is that there are times when I have a term that is correct in a specific context (i.e. within a file's internals) that *also* happens to be close to a real word that I also use and could spell wrong (Sorry I don't have my code handy so I don't have a great example of this, but imagine if some API being used had a “thne” type that I needed to constantly refer (by that name, as distinct variables) to within a specific file, but it's very close to (and an easy typo from) the word “then” so it's probably not a good idea to add it to the dictionary.
Does that make sense? That's a pretty made-up example but hopefully it gets the point across.
It's not a huge deal to not have this functionality, but I figured I'd ask just in case it was in here somewhere and I couldn't find it 😁
If the global exclusion list could understand regular expressions, that would be the solution.
Try this link maybe:
https://youtrack.jetbrains.com/issue/RSRP-490740?_gl=1*1vy5goi*_gcl_au*OTYwNzYyMjY4LjE3NDM0MTc2OTQ.*FPAU*OTYwNzYyMjY4LjE3NDM0MTc2OTQ.*_ga*NTEyNjUwMjguMTc0MzQxNzY5MQ..*_ga_9J976DJZ68*MTc0NDI3MzA0Ny40LjEuMTc0NDI3MzA1My41NC4wLjA.