Taking foreign tax credit for cap gains taxes paid

I am a U.S citizen , resident of India. I have capital gains in my brokerage account in the U.S. As per India taxes, I am liable to pay taxes to India for this category of Income. WIll I be able to take tax credit in USA for the taxes pain in India? If so, how to do in TurboTax>