The rule of thumb is that if it’s something delicate or that can wrinkle (e.g. silk), or that is starched (e.g. dress shirts), hang it. Same goes for heavy formalwear, like gowns and tuxedos. If it’s something stretchy or a material that will warp under the weight of a hanger (like a knit), fold it.