するときは

when doing

→ 為る
phrase Common #6,772
when doing Introduces a situation or condition: when someone does something.
JA: 料理をするときは、窓を開けます。
EN: When I cook, I open the window.

発言するときは手を挙げてください。

Please raise your hand when you want to speak.

退出するときは消灯してください。

Please turn off the lights when you leave.

バレーボールをするときは彼の背の高さは強みだ。

His height is an advantage when he plays volleyball.

だれかと握手するときは、その人の目を見なければなりません。

When you shake hands with someone, you should look them in the eye.