Cuda 10.1 installation with visual studio 2017 community

hello…I am a beginner in cuda
1.first i install cuda 11 and visual studio 2019 preview but the cuda template is not shown in visual studio.
2. Then i remove cuda 11 and install VS 2017 and cuda 10.1. Now also cuda template is not shown in visual studio.
3. Now in my machine i have both VS 2017 and VS 2019 preview
Please help.