| | こと | の |
| ---------------------- | --------------------------------------------------- | ---------------------------------- |
| Frequency | The act of doing (...) (general or multiple things) | single instance of doing something |
| Use with 形容詞 | ○ (e.g. 奇麗なの) | ○ 危ないこと |
| use with sense (感じるとか) | ✕ | ○ |
の: For singular instances of doing something「の」は動作や出来事1つだけ
こと: The act of doing (...) (general or multiple things)「こと」は移動や出来事の全体
部長に会社を辞める~~の~~を伝えた 部長に会社を辞めることを伝えた
泥棒が走っていくのをみた 泥棒が走っていく~~こと~~をみた
Senses can only be momentous, so only with の.
部屋に誰かがいる~~こと~~を感じた 部屋に誰かがいるのを感じた I felt that someone was in the room.
食べることが好きです
You like eating all sorts of things, or eating in general.
海でサンドイッチを食べるのが好きです you specifically like the one act of eating a sandwich on the beach.
Youtube: Meshclass Japanese - Difference between "こと" and "の"