Verb よう (~ you / ~ you ni)
Explanation
Expresses 'the way/manner of doing something' or 'in order to / so that / try to'.
Formation
Verb (dictionary or negative form) + ように (する / etc.)
Detailed Explanation
This usage of よう most commonly appears as 「Verb辞書形 + ように」. It can mean 'in order to do something', 'so that something happens', or 'in the way someone does something'. It is also used in expressions like ~ようにする (to make an effort to) or ~ように言う (to tell someone to do something).
Examples
この問題を解くように努力します。
Kono mondai o toku you ni doryoku shimasu.
I will try to solve this problem.
彼が言ったようにやりましょう。
Kare ga itta you ni yarimashou.
Let's do it the way he said.
毎日走るようにしています。
Mainichi hashiru you ni shiteimasu.
I make it a point to run every day.
自分の心を大切にするように。
Jibun no kokoro o taisetsu ni suru you ni.
Try to take care of your own heart.
Grammar content sourced from hanabira.org.