That's a really good question. I usually rely on the age of the account and their post/comment history. Somtimes it's pretty obvious. It'll be something like a 2 week old accouunt with tons of comments with the majority being in the double-digits downvotes, and the comments will use insults or insinuate things. They'll also have lots of deleted comments in the mod log.
Have you tried confronting these users openly?
Yeah I tried in a few cases, it might have worked once. And also, if they continue, that doesn't necessarily mean they're trolls, they could just antisocial assholes.
Anyway, I think your comment has great advice and it should be used as an example on how to deal with unpleasant users. Seriously, thank you for your reply. I will try to apply your advice in the future.