We use the to + infinitive after:
- most verbs expressing plans, decisions, intentions and willingness, e.g. hope, want, decide, choose
Tim wants to study Law.
- verbs such as: agree, can't afford, manage, need, pretend, refuse
Why do you refuse to lend me your shoes?
- verbs expressing preferences: would like, would love, would prefer
I like going out with my friends, but today I would like to stay at home.
We use the -ing form after:
- verbs expressing emotions, e.g. enjoy, hate, like, love, (not) mind
I hate wearing a suit and a tie.
- particular verbs and verb phrases: avoid, consider, can't stand, prefer, spend time
Laura prefers texting to sending emails.