visual-studio-2010

How Do I Stop Visual Studio 2010 Editor From Making Code Hyperlinks?

Its quite annoying. Example: private const string someUrl = "http://foo.com"; I don't want the text to be turned into a hyperlink in the code editor. Any ideas how to turn this off? ...

Can I configure Visual Studio to use real folders instead of filters in C++ projects?

It's annoying to have to separately maintain a .filters file to make Visual Studio happy, as well as my project's on-disk layout. Is it possible to tell VS to use real folders, like it does for C#? ...

How can I open all files in vs 2010 at the bottom?

Suppose with VS 2010 I open a file contained in my project. It shows the top few lines like 1 , 2 ,3 , ... I want to set something so that if I open a file, the editor is focused on the bottom lines. So if the file contains 5675 lines, focus is on line 5675. Can I do this? If yes, then how? ...

VS2010 takes 5 seconds to simply open any XAML files (!)

Visual Studio 2010 - release - takes about 5 seconds to open a xaml file. It does it on some machine, not all of them! .cs files open instantly. It only happens to XAML. We tried the following, unsuccessful: Run VS as Administrator import user settings from a machine that didn't have the problem clear the borked registry using cclea...

Hide Crystal Reports Tab Control in a Visual Studio 2010 VB.NET Web Application

Hi , How do we hide the Crystal Reports tab for Main Report in a Web form? I am programming in Visual Studio 2010. The TabControl is not available in Web form but only in Windows Form. Thanks in advance. - Sushmita ...

Visual Studio 2010 bug? Wrong namespace in designer files.

My Visual Studio 2010 Professional has started to produce incorrect designer files when editing aspx or ascx files. Visual Studio decides to use the System.Web.UI.DataVisualization.Charting namespace for all controls in the aspx/ascx files. Example: <asp:DropDownList ID="test" runat="server" /> ends up being this in the designer file:...

Source control in Visual Studio 2010?

After doing some search on SO, Google and MSDN forums I've become frustrated that there is so little information for what might seem like an obvious question and possibly a dumb question. I need to use source control in Visual Studio 2010 Professional. I do not have separate Team Foundation Server 2010. Some people have mentioned Source...

Visual Studio 2010 compiler error for base class extensions

I have a c# class providing some simple classes and some base class extensions such as this one.. public static Boolean ToBooleanOrDefault(this String s, Boolean Default) { return ToBooleanOrDefault((Object)s, Default); } public static Boolean ToBooleanOrDefault(this Object o, Boolean Default) { Boolean ReturnVal = Default; ...

Prevent Visual Studio from removing certain using directives

I frequently use the "Remove and sort usings" feature of VS/PowerCommands - in fact, with the help of R#, I make VS do this for me every time i save the document, which I almost reflexively do almost every time I finish writing a code line without errors. However, there are a couple of namespaces that, if they are there, I don't want to...

VS2010 Not Always Building Before Debugging

I have had a problem where VS2010 will not build my projects before debugging. Even when they have never been built before (i.e. on a fresh checkout from source control). I will either find I am stepping through on the wrong lines of code (because the symbols are out of date), or an error message if there is no build output (bin\debug ...

GetPublishingPage stops responding, just hangs and doesn't throw an exception

I'm running some code to get a publishing page at a certain url. In some cases the page will exist and in most it won't. Sometimes when the page doesn't exist, the following line of code just sits there being executed: PublishingPage pubPage = pubWeb.GetPublishingPage("http://some/long/url.aspx"); There is no exception being thrown ...

Create Hot-Key to insert code

On almost all of my vb files, at some point I have to enter some code which is about 30 characters long. Rather than me having to type all this out, or copy/paste from an existing file, I was wondering whether its possible, in Visual Studio 2010, to assign a Hot-Key to this value such as Ctrl+A+B which will paste this code in for me? ...

Visual Studio 2010 is Eating My DLLs! - referenced third party dlls missing after build

Please help I am pulling my hair out over this: I have a Visual Studio ASP.NET MVC solution in which a project references a third party DLL, log4net in this case. My solution tree is as follows: GenericLibrary MyApp.NHibernate MyApp.Library MyApp.WebUI MyApp.WebUI is the main start-up MVC web project and has references to GenericLib...

Which is the default C++0x mode in Visual C++ 2010 Express?

I have just installed Visual C++ 2010 Express and I have the impression that the default mode includes C++0x features and the std::tr1 library. error C2872: 'is_same' : ambiguous symbol could be 'C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\type_traits(941) : std::tr1::is_same' Could you confirm that? If this is th...

Unable to start debugging in Visual Studio 2010.

Similar to http://stackoverflow.com/questions/1928957/debugging-asp-net-with-iis but for different version of visual studio, different OS and his fix didn't work. Before I shut down my computer last night everything worked fine. This morning I rebooted and I started getting the error message below when I tried to start debugging my web...

How Do I Send Command Prompt Arguments from a Windows Form Application in C# for .NET?

This one should be an easy one. An example would be the following: The user clicks a button titled "Ping" and it uses the command prompt "ping" to ping the server. The output is captured in a string and displayed in the windows forms app to the user. ...

VS2010 Debug entry very slow

When I start debugging my web application either from Start with Debugging (F5) or attaching to the ASP.NET worker process it will load the assemblies from the application very slowly that I can individual read the names of them as they scroll through the status bar of VS2010. When I start debugging I see that MSVSMON.exe uses 50% CPU a...

How well does the Visual C++ 2008/2010 compiler optimize?

Im just wondering how good the MSVC++ Compiler can optimize code(with Code examples) or what he can't optimize and why. For example i used the SSE-intrinsics with something like this(var is an __m128 value)(it was for an frustrum-culling test): if( var.m128_f32[0] > 0.0f && var.m128_f32[1] > 0.0f && var.m128_f32[2] > 0.0f && var.m128_f...

VS 2010: Change color of lines based on a pattern

How can I change color of lines in Visual Studio 2010 based on some custom pattern? For example, I want to change color of all lines that start with logger. . Is it possible at all? I have ReSharper 5 installed too. ...

How do i add a project for Unit tests in c# in vs2010 ?

I must be missing something, i have VS2010 Premium. Under Templates, Test Projects -> Test Documents, there is only 1 thing listed called 'Test Project' If i select his, it adds the Unit testing framework to the solution, but the project it adds is for VB.NET --- does c# not have this option? thanks :-) ...