I've found a trick but have trouble explaining it to people - especially if they haven't build a computer before.
The plastic bit inside of the plug usually goes on the side facing whatever board it's interfacing with.
For example, looking straight on from the back of an ATX case, it's usually on the left side - where the motherboard mounts
Front panel connectors are anarchy... but at least they're usually visible