used to do sth. 是“过去常常做某事”,暗涵的意思是现在已经不做那件事了。to do 是不定式,to 即不定式符号。
例如:
I used to run in the morning. 我过去经常在早上跑步。(意思是我现在早上不跑了。)
be used to doing sth.(或be used to sth.)是“习惯做某事”,to 是介词。
例如:
I am used to walking after supper. 我习惯晚饭后散步。
其实是比较好区分的,记两个例句就可以了。