Automatically insert closing brackets and quotes