to try to; to make sure that
Expresses a deliberate effort or habit to ensure something happens or doesn't happen.
This pattern describes a conscious decision or ongoing effort to make a certain behavior a habit or to ensure a result. It often translates as 'I try to...' or 'I make sure to...' in English. The ない-form plus ようにする means 'to make sure not to do' something. For example, to express a daily routine like trying to wake up early, you can say 早く起きるようにしています. The verb before ようにする is always in a non-past (dictionary or ない) form, and it often appears with ています to show a current habit or with てください for a polite request or instruction. This pattern is common in both speaking and writing, though in very casual speech you might just use the plain form, but ようにする is fine in most contexts.