visual-studio

Close all files in visual studio on exit

Is there any way to close all files in Visual Studio on exit? Alternatively if that isn't possible is it possible to delete the user project file visual studio creates on exit? ...

MSTest copy file to test run folder

I've got a test which requires an XML file to be read in and then parsed. How can I have this file copied into the test run folder each time? The XML file is set to "Copy if newer" and a compile mode of "none" (since it's not really a compile-able thing) ...

Developing XNA outside of Visual Studio

There are some alternative IDE for developing XNA games? By example, can I to integrate XNA in #develop? ...

Visual Studio & SubVersion : What about Machine Specific Files

As an example we have a Unit Test Project with an app.config file. The app.config file is configured to work on our build server. But if we want to run our tests locally (with local database) we have to change the app.config...everytime... is there a way to never alter the app.config but to have another file that overrides the app.config...

Where are project level imports stored in Visual Studio 2008?

I have a Web Service Application Project in Visual Studio 2008. This is supposed to be an ASP.Net 2.0 project and at some point this has been rebuilt using 3.5. VS has kindly added in project level imports to System.Linq and System.Xml.Linq, but when I have re-targeted the project at 2.0 these project level imports have remained. Beca...

Visual Studio Fonts and Colors Settings

Duplicate: What color scheme do you use for programming? Visual Studio color theme Visual Studio color settings for better eye I'm using Visual Studio IDE. I tried to use some different visual settings but no one is satisfied. Can someone recommend some good settings for healthy eyes? ...

How to make document tabs in Visual Studio 2008 appear in left-to-right order, just as it was in earlier VS?

In earlier versions of VS (2003 for sure, maybe 2005) when you open a project file, the tab opens to the right. In current VS 2008 it always opens to the left, so I have to rearrange them manually. It's time consuming and stupid, since I feel I'm forced to write in the right-to-the-left order. I looked for appropriate settings, but haven...

Anyone using "database projects" in Visual Studio?

I've recently given it a try (SQL 2008 version) and I find them quite okay. Well, the only problem is that the wizard is not intelligent enough to update database structure without first erasing all data. Is this why these projects are not used in practice? Actually never seen anyone using them or ever mentioning them at all. Also nothi...

Can't establish connection on local ASP.NET development web server?

I am using Visual Studio 2008, and I had an ASP.NET dev configuration working fine, but today when I try to launch any ASP.NET project within the development web server, the browser opens, but I get an error Can't establish a connection to localhost:64428 (port varying at each attempt). The problem is happening even with a newly created...

Default using directives in new C# files

Why does Visual Studio 2008 automatically insert the following using directives into each new C# file I create? using System; using System.Collections.Generic; using System.Text; What's so special about these namespaces? Are these the most frequently used ones? ...

Visual Studio Addin - 1. How to Add a context menu? 2. How to get caret position

I'm writing a (very) simple Visual Studio addin. Two things that would make it work nicer are: A context menu. Knowing the caret position in the current document (so I can inject text at that position). Any ideas? ...

Vim style folding for CSS/javascript in Visual Studio

Is anyone aware of a way to have VIM style folding in Visual Studio? I use #region blocks in c# class files and they're great, but unfortunately there's no equivalent functionality for javascript and css. The site/app I'm currently working on has a rather lot of css selectors and javascript and navigating the monolithic files is becoming...

Visual Studio Addin - Adding a Command to the file->new menu

I have a menu item in the Tools menu, but it needs to go in the file->new menu, however even changing "Tools" to "File" in the pre-generated visual studio code does not give the expected result!!!? ...

Is there a Breakpoint Plugin for Visual Studio?

Background In some sufficiently large applications, you can spend more time figuring out how to drill down to the various layers than you do actually debugging: That's the case with a piece of software I work on now. Layout/separation of concerns issues aside, it'd be nice to have a breakpoint plug-in that would allow you to load break...

Visual Studio 2003, Macro, Process.Attach not working always

I'm using Visual Studio 2003, and I have a macro similar to this: Dte.Debugger.DetachAll() For Each proc As EnvDTE.Process In DTE.Debugger.LocalProcesses If proc.Name.IndexOf("ehexthost.exe") <> -1 Then proc.Attach() End If Next The first time use the macro, it works fine. Each subsequent time,...

Port GNU C++ programs to Visual C++

How do you port C++ programs with makefile made from GNU C++ in Linux to Visual C++? ...

How to debug external class library projects in visual studio?

I have a project(A) that references an assembly from an external project(B) class library that is located in another vs solution. I have yet to understand how i can efficiently debug the class library from B while running the program from project A. Is there something i have to enable on project B such as debug info etc so i can step-i...

Multiple 'development servers' started by Visual Studio

Occasionally, when performing certain actions in Visual Studio, things seem to go 'haywire' - Visual Studio launches many, many instances of the 'Development Server' - multiple icons appear in the notification area, multiple successive 'toast' notifications pop up etc etc. Both of the solutions I have this problem with contain two web p...

How do you use selected vertical blocks in Visual Studio 2008 and 2010?

I get that you can select a vertical block in Visual Studio 2008 (alt-drag), but I don't understand how you use it once it's selected. How do you: Move the selection point inside the block and have the text you're typing get inserted on every line simultaneously? Move the block one space to the right/left Or can you just copy/delete...

Crystal report vs2005 sp1 installation problem (failed to create backup folder)

I'm using the standard crystal report that comes with vs2005, today i'm doing a fresh install on a new computer and when i installed crystal report sp1 for vs2005 it popped up a weird error "failed to create backup folder -110" Tried googling it, but no luck. The closest thing is this not a valid update for my OEM version ? it insta...