BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

Proposed VS 10 Features Released as a VS 2008 Add-On

| by Jonathan Allen Follow 125 Followers on Mar 05, 2008. Estimated reading time: 1 minute |

Microsoft has released a demo of potential Visual Studio 10 features as an extension for VS 2008. The features, collectively called PowerCommands for Visual Studio 2008, include the source code.

Copy and Paste Commands

These commands make it easier to move information between projects via the clipboard. They include:

  • Copy and Paste Class – This is a bit of a misnomer as it copies all the classes in a specific project item. If the project item has sub-files (e.g. page.aspx and page.aspx.cs) then they will also be copied
  • Copy and Paste References – This should prove useful when making similar projects.
  • Copy As Project Reference – Combined with the above, this is much faster than the Add References dialog.

Projects

  • Collapse Projects – Just a shortcut for collapsing the project tree.
  • Edit Project File – This opens the MSBuild for the selected project. Warning, this will cause the project to be unloaded.

Refactoring

  • These new refactoring are only available for C#. VB gets its refactoring support from third-party vendors.
  • Extract Constant – This turns a string into a constant. VB has this through the free version of Refactor.
  • Remove and Sort Usings – This sorts the "using" statements for all files in a project, removing the ones that are not in use. VB has this through the paid version of Refactor.
    Note: The documentation incorrectly states this is equivalent to VB's Remove Unused References. It is not and C# still has no way to automatically remove references to DLLs that are not actually used.

Miscellaneous

  • Open Containing Folder – This opens the Explorer the same as if you opened the file and right-clicked on its tab.
  • Open Command Prompt – This opens a Visual Studio command prompt.
  • Unload/Reload Projects – These commands may be useful when dealing with non-integrated source control. Perhaps unloading projects not currently needed also has a performance impact.

For a full list see the readme file that comes with the installer and source code.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT