Setup:

  • Win7 Pro x64
  • VS2008
  • VS2010
  • CUDA 4.0
  • VisualAssist

To enable VisualAssist to work with CUDA I did the following:

  • Close all VisualStudio instances
  • Copy C:\Program Files (x86)\Visual Assist X\AutoText\Latest\Cpp.tpl to C:\Program Files (x86)\Visual Assist X\AutoText\Latest\Cu.tpl
  • Run VisualStudio once and close
  • From regedit, open HKEY_CURRENT_USER\Software\Whole Tomato\Visual Assist X\VANet9 (VS2008) and/or HKEY_CURRENT_USER\Software\Whole Tomato\Visual Assist X\VANet10 (VS2010)
  • Add ".cu;" to the ExtSource key
  • Add ".cuh;" to the ExtHeader key

Start VS again and you should be good to go!

Source: Cuda Forum