~ことにする
Make a decision yourself
You'll be able to say that you have personally decided to do or not do something.

父は電車で行くことにしました。
chichi wa densha de iku koto ni shimashita.
What do you think this sentence means?
My father decided to go by train.
Make your own decision
~ことにする presents a choice made by the speaker or named decision-maker. It focuses on deciding to adopt an action or not do it.
今日は外食しないことにしました。
kyou wa gaishoku shinai koto ni shimashita.
I decided not to eat out today.
Form and use ~ことにする
Use ことにしました for a decision already made. ~ことにしている can describe a personal rule. It contrasts with ことになる, where the arrangement is presented as decided or resulting without foregrounding your choice.
今日は外食しないことにしました。
kyou wa gaishoku shinai koto ni shimashita.
I decided not to eat out today.
毎日歩くことにしています。
mainichi aruku koto ni shite imasu.
I make it a rule to walk every day.
健康のために、毎朝歩くことにしました。
kenkou no tame ni, maiasa aruku koto ni shimashita.
I've decided to walk every morning for my health.
雨なので、今日は出かけないことにしました。
ame na node, kyou wa dekakenai koto ni shimashita.
It's raining, so I've decided not to go out today.
来年、日本に留学することにしました。
rainen, nihon ni ryuugaku suru koto ni shimashita.
I've decided to go and study in Japan next year.
7 more examples in the grammar path — free for a limited time.