It can be hard sometimes, if you write untidy code ;-) If you consistently pay attention to indentation, missing curlies aren't /too/ hard to spot. If, however, you have other people's untidy code (ahuh), you might want to view it with some program like
. This program will show you the opening or closing curly, by selecting the other, which would solve your problem too.