Breakdown of Перед тем как идти спать, я проветриваю комнату и выключаю телефон.
Questions & Answers about Перед тем как идти спать, я проветриваю комнату и выключаю телефон.
Перед тем как literally means before that, how…, but as a set phrase it simply means before (doing something / something happens).
It’s a common “linking” structure:
- Перед тем как + infinitive (when the subject is the same): Перед тем как идти спать…
- Перед тем как + clause (when you want a full verb clause): Перед тем как я пойду спать…, Перед тем как он уснёт…
A close synonym is прежде чем.
Many writers put a comma: Перед тем, как идти спать, … because как introduces a subordinate part.
In modern usage, both are seen:
- Перед тем, как… (very common in careful writing)
- Перед тем как… (also very common, especially when the whole phrase is felt as one unit)
In your sentence, the comma after the introductory phrase (…, я проветриваю…) is definitely expected.