2

There is a feature in visual studio to have a link to an existing item in another project as stated in "How do I create Visual Studio shortcut files". Is there any Key Combination for that feature?

for example (Ctrl+Shift+C) and Drag the existing item to another project and that action creates a link to that existing item. How and where may I define that shourcut keys?

Community
  • 1
  • 1
anonim
  • 2,494
  • 6
  • 30
  • 40

2 Answers2

4

In Visual Studio 2010, exists a Command called "File.AddExistingProject". In Tools/Options/Environment/Keyboard you can assign a shortcut to this command, for example I've assigned Alt+Shift+P.

Marc
  • 1,359
  • 1
  • 15
  • 39
2

This doesn't have a shortcut key directly, but you can get the effect in a macro by using the ProjectItems.AddFromFile method. This creates a link from the source file in your project.

To assign a shortcut key to your macro, go to Tools/Options/Keyboard within Visual Studio. You can assign shortcut keys there.

Ann L.
  • 13,760
  • 5
  • 35
  • 66