visual-studio

How to disable the "auto format" feature of VisualStudio2008 editor?

When writing the HTML part of a page in a VS2008 Web App, the editor keeps formatting the HTML with linebreaks that break the readability of the code (to my eyes). Can this feature be disabled? Thanks ...

Problem with const vs #define in Visual Studio

From what I understand, #define x y and const int x = y; should work identically under the Visual Studio compiler, but const int x = y; is the preferred method. The C code I have looks something like this: static const int x = 100000; void SomeFunction(...) { volatile static int y = x; ... } The problem here is with the decl...

How to "watch" character values of a string on Visual Studio?

I remember I could add modifiers to a watched variable during debugging to make its display in different formats in Delphi. Such as "str,m" would display string in its binary representation. Similarly I'd like to look at binary representation of a string to see character values for .NET applications on Visual Studio 2008. What's the eas...

Breakpoints not being hit

When trying to debug a ASP.NET MVC app, the breakpoints in my controllers arent getting hit. When entering debug mode they just show an empty red circle with a warning triangle instead of the normal full circle. This is strange because debugging was working fine until now, and no configuration changes have been made in my environment for...

How do I get Visual Studio 2008 to ignore trailing whitespace when I press END?

It's annoying in VS2008 when I press the END key, and my cursor jumps out to way beyond the end of the line of code, because I have trailing whitespace from a copy+paste or reformat. I would like the END key to ignore whitespace. How can I best do this? I thought of using AutoHotkey to catch END keypresses, and replace them with "CTRL+...

Getting Default browser

How can i which is the default browser in my system programatically. the codes must be developed using vc++ Is there any API for this Where in the registry is the default browser value changed can somebody help me out. ...

How to get Program Files Path in Visual Studio configuration

I followed this tutorial to make NUnit tests debugable in Visual Studio. In the debugging options I set "Start external program:" to C:\Program Files\NUnit 2.4.8\bin\nunit-x86.exe. Is there a way to get the program files directory dynamically to avoid problems when other people work with this solution on their system? ...

MS Visual Studio 2008 Professional: How to disable webservers for other projects?

I am using visual studio 2008 professional edition. In my solution I have about 8 projects. When I am working on 1 project and I set this one as my startup project and want to debug this one, I get 7 webservers, all with different ports. I don't want this, I just want that only one webserver is getting started for the project I am debu...

Creating a BizTalk solutions with multiple projects

Has anyone got any guidance, better yet, tools for generating up a "starter" BizTalk solution ? I've been reading various blogs, articles, etc. and they mainly go for splitting down the solution into seperate projects, one for schema, one for orchestrations, etc. I'd like to follow this practice, but it's a pain creating the full set, ...

How to replace Visual Studio's integrated help with a browser-based web search?

Pressing F1 in VS launches Microsoft's Document Explorer. How can I open the help results in my web browser instead? ...

Crash shows Visual studio option. But not showing dont send message.

Hi All, When I get any crash in my pc, I used to get don't send dialog box. But recently it is always showing some dialogbox, and it is asking to debug in visual studio. I dont want this dialog option. How can I remove this option. Could any one knows information about this. Thanks & regards, Haranadh ...

Editor visual studio 2008

I have this annoying problem. I've used some kind of key combination and now my spaces are dots my tabs are arrows etc. does anyone know how to turn this off? ...

Do you have performance problems when you work on Visual Studio projects via a network share?

We have tremendous problems with Visual Studio (2008, if that matters) locking up and slowing down when accessing projects over a network drive. It can take several minutes to open a large Web site project through a mapped drive, and saving even a single file can take a minute or more. I fired up Wireshark and watched the traffic. VS,...

Preventing Visual Studio from building all projects when debugging one

I have a solution with a few different projects in it: a couple dll projects, a console project, and a couple WCF projects. The console project uses a dll from one of the projects, but I have VS set so that the console project has no dependencies. However, when I debug the console project VS launches, or builds all my projects. This i...

VS2008 Solution Template

Hello, In the past I have created ItemTemplates for classes that I regularly use in VS2008. I want to create a template for a solution that will have two projects, a Web Site and a Class library. I have not been able to find any clear instructions on how to do it. I am not sure if it can be done. Does anyone have any links to a possibl...

How To Convert ASP.NET Website to ASP.NET Web Application

I have an ASP.NET 3.5 Website (visual studio lingo), but the site continues to grow and is looking rather cowboyish among other things. I'd like to see this get converted into a Web Application (namespaces and all). Is this something that can be easily done in Visual Studio? If not, are there any other tools out there that could creat...

Visual Studio - Programmatically configure solution for source control.

Hey all, I am in the process of creating a Wizard to help my organization auto create a base project for all applications. The idea is that a programmer can enter a project name, a few other basics and the process will create some projects, add other project from source control, configure IIS, etc... A lot of the work is done by simpl...

visual studio 2008 installation

I cleared windows temp file and %temp% from my system . (i installed vs 2008) but now i can't able to create new project (window application), whether VS 2008 installation file is related to temp. The error showing that doc settings/temp/ .... some file missing........ ...

Turn off auto formatting in Visual Studio

I'm code purist, preferring own style of code formatting (opposite to suggested by VS 2008) I've turned off auto-formatting options in Tools/options. In most cases it works. But noticed that after refactoring VS demolishes my code... (Eg after using such option as encapsulate field, extract method, using surrounding snippets...) This ...

Visual Studio clipboard problem

In all versions of Visual Studio I have used so far I have a problem with copy/paste operation. After using the application for a while(and in many cases very short while) when I copy some words or lines and paste, nothing gets pasted. Then I click ctrl+c multiple times and then the content gets copied and I can successfully paste. This...