https://kotlinlang.org logo
c

Colton Idle

08/12/2021, 2:36 AM
No matter how many times I try to implement a shared dictionary so my company stops being flagged as a typo it just doesn't work out for me. Anyone have a tutorial for it? Here's what I did: 1. Go to Preferences > Spelling > Select Project 2. Add typo to dictionary via alt + enter. I see that it generated a file with [coltonidle.xml]. 3. I change the name of the file to "shared_dictionary.xml" 4. Now the typo still shows up. I don't want every user'sname.xml to be checked into source control Anyone figure this out yet?
c

Colton Idle

08/12/2021, 3:16 AM
Well. That doesn't look promising. 😭
c

christophsturm

08/12/2021, 9:11 AM
the ticket says that it will just work if you keep the file named coltonidle.xml
c

Colton Idle

08/12/2021, 3:53 PM
@christophsturm thanks. I guess I just don't want our dev names there though (although I understand @yole’s point about mitigating the chance of merge conflicts). We legitimately just want a single shareddictionary.xml that includes the company name. lol
c

christophsturm

08/12/2021, 9:18 PM
You could just create a user named shareddictionary and open the project there :)
c

Colton Idle

08/12/2021, 9:24 PM
Would my teammates stop getting spelling errors once any xml is checked in?
e

ephemient

08/12/2021, 10:44 PM
if your teammates are also named shareddictionary, yes
😭 1
c

Colton Idle

08/13/2021, 4:14 AM
Looks like I can just add a .dic file?
c

christophsturm

08/13/2021, 5:30 AM
idea uses all the dictionaries with all your names, so i guess yes they will stop getting spelling errors
c

Colton Idle

08/13/2021, 2:56 PM
I tried with a friend. I created a shareddictionary.xml in dictionaries... and push up that change, and typos disappeared on his end. 👍
5 Views