Tutorials Forums
     Tutorials Videos
        Sign Up Now For FREE

Articles tagged with: Visual Studio

08
June
2010

Major UI Upgrade for Visual Studio 2010
5.0/5 rating (2 votes)

Visual Studio has received a major UI upgrade via the add-in Visual Studio 2010 Pro Power Tools. In addition to finally fixing the Add References dialog, the major change is what they are calling “Document Well 2010 Plus”. This significantly alters the way tabs are handled in the document pane.

The new Add References dialog looks nothing like the original. It is much larger by default and can actually display entire assembly names. Checkmarks indicate what assemblies are already referenced and a side bar gives you more information about the highlighted DLL.

Since it caches the assembly list, opening the dialog a second time is instantaneous. Considering that it takes less than 30 seconds to install, this alone makes the upgrade pay for itself. Throw in a highly responsive search feature and we get a dialog that should meet everyone’s expectations.

img1

08
June
2010

Visual Studio 2010 Pro Power Tools
4.5/5 rating (2 votes)

Visual Studio 2010 Productivity Power Tools

A set of extensions to Visual Studio Professional (and above) which improves developer productivity.

  • Document Well 2010 Plus
    One of the key pieces of feedback that we have received over several versions of Visual Studio is that users want to be able to customize the behaviour of their document tabs.  From the ordering of tabs to the position of the close buttons, user can now configure dozens of different options for their tabs.  Go to Tools -> Options -> Environment -> Document Tab Wellto configure these options as you prefer:
    • Tab Well UI
      • Scrollable tabs
        Maintain spatial consistency of the documents that are included in the document well.
      • Vertical tabs
        Document tabs are shown vertically, allowing you to fit more tabs than are normally visible when shown horizontally.
      • Pinned tabs
        Allows you to pin tabs to keep them always visible and available.
      • Show close button in tab well
        Similar to Visual Studio 2008, will show a close button in the document well that will close the active tab.
    • Tab Behavior
      • Remove tabs by usage order (LRU)
        When a new tab is inserted and existing tabs don't fit in the document well, instead of removing the tab at the end of the well it will remove the least recently used tab. This ensures that frequently used tabs are readily available.
      • Show pinned tabs in a separate row/column
        Pinning tabs can quickly cause you to run out of space for regular tabs. The option allows you to always show pinned tabs in a separate row (or column, if displayed vertically) from regular tabs.
    • Sorting
      • Sort tabs by project
        Tabs will be sorted by the project they belong to, thus keeping them always together in the document tab well.
      • Sort tabs alphabetically
        Tabs will be sorted alphabetically. When Sort By Project is turned on, tabs will be sorted first by project and then alphabetically.
      • Sort tab well dropdown alphabetically
        The drop down menu at the right end of the document well is sorted alphabetically. This option allows ordering as the tabs are laid out in the document well.
    • Tab UI
      • Color tabs according to their project or according to regular expressions
        This option permits tabs to be colored according to the project they belong to. This is particularly useful when sorting tabs by project, as it allows you to immediately identify different groups of project documents.
        You can also configure regular expressions and assign a color to each one. If the name of a tab matches the configured regular expression, it will be colored with the assigned color.
      • Miscellaneous options that modify tab UI
        • Show document/toolwindow icon in tab
        • Show close button in tab
        • Modify dirty indicator style
          This option allows you to select from a set of different dirty indicators that you might prefer over the asterisk.
        • Modify minimum and maximum tab size
          Allows you to modify minimum and maximum tab size. Try setting minimum and maximum sizes to the same value, and you will have evenly spaced tabs.
  • Searchable Add Reference Dialog
    The new Add Reference dialog makes it faster and easier for you to find the reference that you are looking for and add it to your VB, C# or F# project.  From the Solution Explorer, simply right click on the References node, select the Add Reference command to see the updated Add Reference Dialog.
  • Highlight Current Line
    As the resolution of monitors increases, it’s becoming more difficult to find the caret in the code editor.  The highlight current line extension makes it easy to find the caret by highlighting the line that the caret is on in the editor.  You can even configure the default colour by changing the setting for “Current Line (Extension)” and “Current Line Inactive (Extension)” in Tools Options Fonts & Colors.
  • HTML Copy
    This extension provides support for the HTML Clipboard format when copying code from the editor.  This means that you’ll no longer have to go fix up the formatting of your code when you paste it into a TFS bug form or any other HTML based control.
  • Triple Click
    It’s never been easier to select a line of code from the mouse by simple triple-clicking anywhere on the line.
  • Fix Mixed Tabs
    Some developers prefer tabs, others prefer spaces, and nobody likes mixing tabs & spaces.  This extension promotes developer harmony by warning as they are open or save a file that has a mixture of tabs & spaces.  The information bar also provides an easy way to fix the file to suit your preference.
  • Ctrl + Click Go To Definition
    This extension gives the editor a web browser by adding clickable hyperlinks to symbols in your code as you hold down the Ctrl key.
  • Align Assignments
    This extension is useful for making your code a little more readable by aligning the assignments when you type Ctrl+Alt+] such that it takes this:

    And turns it into this:

    Please note: This may conflict with your formatting settings. E.g. in C# you will need to disable: Tools->Options->Text Editor->C#->Formatting->Spacing->"Ignore spaces in declaration statements"
  • Colorized Parameter Help
    This extension improves consistency with the editor by applying syntax highlighting to the contents of the Parameter Help window for C# &VB.
  • Move Line Up/Down Commands
    This extension maps the Alt+Up Arrow & Alt+Down Arrow keys such that they will move the current line of code or the selected lines up and down through the editor.
  • Column Guides
    Since Visual Studio 2002, there has been a not so secret registry key which allowed user to draw a vertical line in the code editor.  This is very useful to remind developers that their full line of code or comments may not fit one a single screen. Thanks to this extension this feature has returned with UI configure it.  Simply place the cursor at the appropriate column and select Add Guideline from the context menu

Source

06
June
2010

A Hidden Feature in Visual Studio 2010
5.0/5 rating (2 votes)

This hidden feature gives you thumbnail previews on the Ctrl+Tab UI (IDE Navigator). To enable it:

  1. Click the Start button on your desktop and select “Run…” (or press Win+R as a shortcut).
  2. Type the following line into the Run dialog (all on one line) and click “OK”

reg ADD HKCU\Software\Microsoft\VisualStudio\10.0\General /v ShowThumbnailsOnNavigation /t REG_DWORD /d 1

Now, restart or launch Visual Studio 2010, load a few files and press “Ctrl+Tab” to bring up the ‘IDE Navigator’. Presto! You should see thumbnail previews on the navigator. If you don’t see them, it may be for one of the other reasons listed in the next section.

vs2010hiden

03
June
2010

Better Parallelism in MSBuild 4 with YieldDuringToolExecution
5.0/5 rating (2 votes)

Introduction

In MSBuild 4 we introduced several performance improvements, particular for large interdependent builds.  By and large they are automatic and you receive their benefit without making any changes to the way your build process in authored.  However, there are still some cases where we are unable to make the best decision.  One such case is when there is a particular external tool which is invoked as part of the build but which takes a significant amount of time.  An example of such a tool would be cl.exe, the C++ compiler.  This article discusses how to use the new yield mechanism for external tools to improve the performance of your builds.

Tool Tasks

There are a few ways MSBuild can be made to execute external, command-line tools:

  1. Write a task which derives from ToolTask.
  2. Use the Exec task to call your command.
  3. Use the XamlTaskFactory.

All of these methods ultimately use the ToolTask class in Microsoft.Build.Utilities.v4.0.dll to handle executing a command-line task and deal with the output in the MSBuild way.  Like all tasks, however, they block any other work from happening in MSBuild while they are executing.  In cases where the task is very short, such as touching a log file or copying a file from one place to another this is perfectly acceptable.  But in the original example of invoking the C++ compiler, the amount of time MSBuild itself sits idle can be lengthy and in some cases it may be a significant impediment to good parallelization of your build.

The problem has to do with the way MSBuild utilizes its worker nodes.  Whenever a project is scheduled to be built, it is assigned to one of the worker nodes.  This node will then execute that project from start to finish, and will not accept more work until the project is either finished or the project makes an MSBuild call (for instance to satisfy a project-to-project reference.)  This is in large part because a node can only execute one task at a time, as tasks must be guaranteed their environment and current directory will not be modified during execution.

However, command-line tools do not execute in-process, and therefore their environment cannot be polluted by the running of additional tasks in parallel on the same node.  We can take advantage of this behavior to let the MSBuild node execute tasks in other projects while our long-running tool completes its work.  This is done using the YieldDuringToolExecution parameter.

27
May
2010

Samples Environment for .NET Framework 4 Chart Controls Released!
5.0/5 rating (2 votes)

You can now download Visual Studio 2010 projects that contain all the samples targeting .NET Framework 4.

Download Description

The samples environment for Microsoft Chart Controls for .NET Framework contains over 200 samples for both ASP.NET and Windows Forms. The samples cover every major feature in Chart Controls for .NET Framework. They enable you to see the Chart controls in action as well as use the code as templates for your own web and windows applications.
 MS