Posts Tagged ‘visual studio 2010’

How to set `Internet Explorer` to be run when executing an ASP.Net project

How did I know this?

As a Chrome browser fan, my default system web browser is Chrome.

This leads me to a bothering experience when developing web on ASP.Net technology – when running an ASP.Net project, Chrome always opened to run. This is not preferred to run an ASP.Net web page from Internet Explorer (IE) since the technology is optimized for that browser.

So, what I need is 1) to keep still the OS’s default browser to be Chrome and 2) the browser automatically-run when executed from Visual Studio IDE is IE. Here’s how.

First right click a page

image

Then, select `Browse With…`

image

Then, select IE and set it as the default browser

image

Hope it is helpful to you!

Nam.

How to Set up/Use Proxy Server for TFS in Visual Studio 2010

Here are steps to get your IDE be able to use the TFS Proxy feature which helps the getting-latest process be much faster! The main idea is to add a proxy server so that every time we need a get-latest, the content to download will be downloaded from the proxy server; only when the proxy server is outdated, i.e. the latest codes revision number is higher/more recent than the proxy, a direct download to TFS server (the real server other than the proxy we are talking about) is executed.

You need to know the proxy server’s name/IP and port number to proceed – often given by the system administrator at your office, please ask them.
In Contemi Vietnam we use the below information.

The Steps

1. Open the VS TFS option
  • Open menu Tools – Option – Source Control – Visual Studio Team Foundation Server
  • or
    If you have install Visual Studio Productivity extension, you can call Ctrl-3 to bring up the Quick Access box and enter Visual Studio Team Foundation Server and go directly to the option.

    2. Enter the server name/IP and port number.

     

      Hope this helps,
      Name.

      The Most Helpful Addons in Visual Studio to me ^_^!

      Here are the addons I used and get profit from it:

      1. Visual Studio 2010 Productivity Power Tools
        Tab Well UI
        Camel-case intellisense

        Colorized Parameters in Help Tooltips.
        Move Line Up/Down Commands (using Alt-up/down)Align Assignments

        Quick Access (More Info)
        To use, press Ctrl+3 to launch Quick Access, type in your search term (e.g., “debug”), and press Enter on the desired result.  If your search term returns too many results, continue pressing Ctrl+3 to cycle through each category of results.

        Highlight Current Line
        Triple Click to select whole line

        Searchable Add Reference Dialog
        (More Info)
        Ctrl + Click Go To Definition.
        Tab Arrange.
        .

      2. VSCommands 2010
        Custom Formatting Build/Debug/Search Output
        Apply Fix StyleCop warnings

         

        Collapse All
        Button to “Collapse All Projects and Folders” in Solution Explorer
        Show/Hide All Files
        Locate Source File
        Navigate to the source of linked file with just one click
        Open File Location
        Locate in Solution
        Find and highlight currently opened file in Solution Explorer
        and more
        .

      3. PowerCommands for Visual Studio 2010
        Auto Format document on save
        Auto Remove and Sort Usings on save

        .
      4. (trying-on) Support finding files under version control by status or wildcard.

        A command line tool that you can use to work with files and directories under version control, team projects, and work items. Some commands display a graphical user interface when run
        .

      5. Search Work Items for TFS 2010
        Add searchbox when browsing the work-item query results.
        .
      6. CoolX already covered by VSCommands 2010
        Locate current-opened file (in Text Editor) in Solution Explorer.
        Collapse all projects in Solution Explorer – especially useful when your solution has teens of projects and updated very often.
        .
      7. (ALT + ,) toggles namespaces filter.

        (ALT + .) togges narrowing filter — only show Intellisense which contain your typed-in Pascal leters.
        Locating an assembly using the xmlns Pascal case IntelliSense.
        .

      8. Workflow control for TFS 2010
        Visually see the flow of an work-item.

        .
      9. CodeCompare
        Seamless Visual Studio integration – achieve all of the VS editor power for text editing: IntelliSense/Code highlighting/Breakpoints/Bookmarks/Regions


        Source control integration – easily integrated to any version control that supports external comparators like TFS.
        .
      10. DPack – Numbered Bookmarks
        Ordered/numbered bookmarks

        .
      11. Vingy Addin for Visual Studio 2010
        It’ll enable you to search Stackoverflow, Codeproject, Codebetter etc from with in VS2010

        .
      12. CodeRush Xpress
        Code block highlight.
        .

      13. (to be continued)

      Enjoy!

      List of hotfixes for Visual Studio 2010

      Microsoft doesn’t make an easy-to-find list of hotfixes for Visual Studio 2010 as discussed here. From that useful talk, the list are stored here.

      Here is the hotfixes that I found useful for my own use.

      [The IDE]

      1. KB2268081 – QFE: Find and Replace Dialog grows in width with each invocation
      2. Cut or Copy displays ‘insufficient memory’ error in Visual Studio 2010
      3. KB2345133 – Fix for scrolling unnecessarily in VS context menus
      4. KB2275326 – The Visual Studio 2010 development environment crashes on shutdown

      [TFS]

      1. KB2402815 – Source control does not flag conflict during cherry pick merge

      (to be updated)

      Nam.

      How to track an object which is Out of Scope while Debugging ? « Abhijit’s World of .NET

      How to track an object which is Out of Scope while Debugging ? « Abhijit’s World of .NET.

      Code snippet to generate codes for a test class/method

      Full details:

      1. Go to Edit – Intellisense – Insert code snippet
        or Ctrl – K – X
      2. Select Test
      3. Select Test Method/Test Class to insert the snippet for test class/method.
      4. Note: If hovering your mouse pointer on Test Method/Test Class you will get short-cut of the snippet in tool tips.

      Get it quickly:
      Start typing testc/testm and then tab twice to insert the snippet for test class/method.

      Patches you may need that do not come to you actively

      Today, after finding two patches that release me from the bugs of Visual Studio 2010, I decided to note them down here so as others can quickly find them.

      1. Patch Available for Cut or Copy displaying “insufficient memory” error in VS 2010 – The Visual Studio Blog – Site Home – MSDN Blogs
      2. Patch Available for the Growing Find and Replace Dialog
      3. (to be updated)

      Nam.