〜ようにする This pattern is used to say you are making an effort or a habit of doing something ("try to ~", "make sure to ~"). It is about ongoing effort, not one action.
Formation
dictionary form / ない-form + ようにする
| 食べる | 食べる + ようにする | 食べるようにする |
| 寝る | 寝る + ようにしている | 寝るようにしている |
| 飲む | 飲まない + ようにする | 飲まないようにする |
Examples
毎日野菜を食べるようにしています。
I make a point of eating vegetables every day.
夜はコーヒーを飲まないようにしている。
I try not to drink coffee at night.
遅刻しないようにしてください。
Please make sure not to be late.