Find some high-quality projects using the language, and study the source. Languages that have their standard libraries written in the language can be good for this. In a lot of languages, there are several different ways to skin a cat, and it can be confusing, particularly when what is considered idiomatic evolves over time as the language matures or different fashions come into prominence. I'm not sure you can really get a good grasp of what good, idiomatic code looks like without reading a lot of it; similar to the way I've always heard it said that the best way to become a good writer is to read a lot of good writing. After a while, you start to internalize it.
I do love using JetBrains tools and editors, since they generally have pretty good linting and stylistic rules engines built in. Mostly, I work in C#, and ReSharper has improved the quality of the code I write immeasurably. At the very least, it helps evolve you towards a consistent style, but it can also suggest more idiomatic usages in some cases.