Grammar - Beginner - Part 3
koto ni shite iru ことにしている
Predicative phrase meaning: make a practice of (doing), make it a rule to (do)

1. After dictionary form of verb

寝る前に本を読むことにしています。
Neru mae ni hon o yomu koto ni shite imasu.
I make it a rule to read (a book) before going to bed.

2. After nai-form of verb

夜ふかし(夜更かし)しないことにしています。
Yofukashi shinai koto ni shite imasu.
I make it a rule not to stay up late.