I struggle a lot with this. I've just listened to Fr. Ripperger's talk on language, and it really brought home how awful this habit is, especially for a woman (which I am). Other than mentioning it in confession, how can I rid myself of this habit?
Just stop. There, fixed. Jokes. If you can't catch yourself before you start cussing, then maybe try to figure out what triggers you to cuss? Is it anger? Is it just not caring what you say? And what about children and young people who overhear you cussing in public or with family? You are setting a bad example and leading them down a road of sin. And cussing makes you look like another low IQ trashy person. Not a Catholic.
I used to cuss a lot and thought nothing of it before I got serious about the faith. So I became conscious of everything that came out of my mouth so I would stop cussing. You should too. Try practicing speaking less. Then not as much diarrhea will come out of your mouth.