~ようとする
Curiosity
How do you express an attempt or the very moment of about-to, as in "I tried to open the door (but it would not)," in Japanese?
Intuition
The volitional (~you) forms the intent "to do," and to suru captures the moment of turning that intent into action. It means "just about to" or "(make an effort to) try to."
Visualization
iku (go) → ikou (volitional) → ikou to suru (try to go / be about to go). to suru attaches after the volitional.
Essence
Volitional + to suru (tabeyou to suru, ikou to suru). Two senses: (1) attempt ("strive to," with volitional verbs); (2) imminence ("just about to," often past ~you to shita with ~toki). Hard to use with non-volitional verbs. For how to form the volitional, see the volitional entry.
Examples
Mini-quiz
Which fits "just as I was about to sleep"? (volitional of neru + to suru)