Search code examples
visual-studio-2010windows-phone-7

Can I auto-import a namespace in MS Visual Studio 2010?


When developing for Android in Eclipse, for example, it's easy to automatically import packages and classes by hitting Ctrl+Shift+O. I'm finding it difficult to write code every time I have to go google a function to figure out its namespace ... is there an easier way?


Solution

  • There is Ctrl + Shift + F10 or Ctrl+ shortcut, that provides some light refactorings like creating method stubs, renames methods and variables and imports usings. This shortcut is not always available - it can be used when a small red box underneath, after you click it you'll see the drop-down menu with a choice of possible actions

    enter image description here