表示习惯性动作的时候跟doing,没有这层意思的时候跟to do,比如:
He likes swimming. 他喜欢游泳。
He likes to swim. 他喜欢游泳。
两个句子都表示他喜欢游泳,但第一个表示他平时就有喜好游泳这个习惯,而第二个句子则没有这层意思。
另外,有时候,跟to do 和跟 doing的意思是完全不一样的。比如:
He stopped to read a book. 他停下来看书。(停止其他工作,转而看书。)
He stopped reading a book. 他停止看书。(不再看书了。)
to do潜含有说话时候还没有做,将要做,去做
doing潜含有说话时候正在做着,伴随状态