Deductions & credits

I also am a US citizen, long time resident of a foreign country (Mexico), and have tax paid to Mexico on Cap Gains for sale of US ETFs.   Can I claim Foreign tax credit for the amount paid?

How do I do this on Form 1116?

How do I do this thru TurboTax?

(I can do this for dividends and interest in TurboTax using Form 1116 for Foreign Tax credit, but cannot do this for Cap Gains.) 

I think a lot of US citizens living abroad need this answer so please answer in this email string so others can also take advantage of this information.