This means something happens just like you expect. It is exactly as someone said or showed you.
。
Everything proceeded according to the plan.
に、。
The experiment failed because I didn't do it exactly as the teacher showed me.
、。
Alright then, I'll do as you say.
で。
Please operate it following the procedure in the manual.
、。
Just as the weather forecast said, it rained in the afternoon.