1

I created 2 games using the visual studio 2010 for WP7 using XNA and when trying to create one using c++ in visual studio I dont know how to turn on the auto completion thing. When for example I wanted to write a function/variable, I just used to write the first 2 letters then choose it from the list. This helps me save time but I dont know how to turn this feature on when writing in c++

Best Regards

2 Answers 2

2

Sounds like you're using C++/CLI, since you said both C++ and XNA (.NET).

Visual Studio 2010 doesn't have Intellisense for C++/CLI. It should be added back in the next version, or you can buy Visual Assist X from Whole Tomato Software, which not only supports C++/CLI but does a better job on C# and native C++ as well.

If you don't intend to use .NET, you can get Intellisense working by turning off the /clr compiler option.

4
  • I want actually to develop games using Airplay SDK (Marmalade) which supports c++ so... Jul 3, 2011 at 14:11
  • @user: Then make sure you have a native project, no /clr.
    – Ben Voigt
    Jul 3, 2011 at 14:13
  • I dont understand what you mean by no /clr Jul 3, 2011 at 14:14
  • /clr is a compiler flag that enables the Common Language Runtime (managed code). Not specifying it on the command-line means you're using native code.
    – user802003
    Jul 3, 2011 at 16:59
1

Hit CTRL+SPACE after typing a few letters.

3
  • Is there a way to make it automatic Jul 3, 2011 at 14:09
  • 1
    Not natively, no. Visual Assist X can do that, but the license is quite costly.
    – Xeo
    Jul 3, 2011 at 14:11
  • What about refactor cpp I am downloading it right now and it is free but does do what I want? Jul 3, 2011 at 14:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.