visual-studio

How can I stop using a mouse while programming in my IDE?

I love using an IDE, because I get some great productivity gains. However, I have a couple reasons to stop using a mouse with an IDE: To code faster - It definitely slows down my coding when my typing is interrupted with all of the constant point and clicking. To relieve pain - I've never had pain from the keyboard, but I get tendinit...

Add Solution Folder for VS 2008?

I just started to use VS 2008 Express. I noticed that I cannot add a new solution folder within a solution in the way like VS 2005 Prof. Not sure if this feature is disabled in the Express version or not. In VS 2005, I can also add project within a virtual solution folder. This makes my projects in a well organized tree. However, I cann...

VS2008 Macro to get command waiting to be executed

I'm currently trying to create a macro to help me debug an annoying JavaScript issue. There's a function that's getting called and it's throwing an exception. I've tried stepping through to find out what code is calling this function (because it shouldn't be called) but the third-party controls we're using and jQuery are creating a mount...

.Net sln structure

I have been working on variety of projects at my work. I am thinking to organize all the projects within solutions in the following tree structure: [Common Libraries] -- virtual and real folder project1 project2 .... -- projects or folders [Application Group1] [Application1] project1 -...

Displaying code sections with a different background color?

Hi, We have a tool that generates source files, and each generated file has several sections were a user can insert their own code. We would like to be able to mark those sections with a different background color than the automatically generated ones. Is there a way to do this in visual studio? Thanks! ...

Override visual studio syntax highlighting through a plug-in?

Hi, This is related to this question I asked earlier about syntax highlighting user-defined blocks of code. Is it possible to write some kind of plug-in for visual studio where it would override how it does syntax highlighting? Where would I start looking for that? Thanks! ...

Programmatically changing file icons in Visual Studio 2005's solution explorer

I'm writing an add-in for Visual Studio, which must be compatible with VS 2005. This add-in involves marking certain files as "special", and I'd really like to make their specialness visually apparent in the Solution Explorer - currently my users either have to manually keep a note of which files are special, or right-click on each poten...

isAbstract template and visual studio

The following template will decide if T is abstract with g++. /** isAbstract<T>::result is 1 if T is abstract, 0 if otherwise. */ template<typename T> class isAbstract { class No { }; class Yes { No no[3]; }; template<class U> static No test( U (*)[1] ); // not defined template<class U> static Yes test( ... ); // not d...

How can I inhibit warning 4200 in Visual Studio 2005?

I can inhibit many warnings in Visual Studio 2005 SP1 in the C/C++ Advanced property page, which causes the IDE to use the /wd switch on the command line which invokes the compiler. However, when I try to inhibit warning 4200 (nonstandard extension used : zero-sized array in struct/union), it still appears when I compile. (Of course it's...

Visual Studio Find and Replace Variables

I am trying to replace a two letter state abbreviation with text then the abbreviation. Eventually I want to find and replace the rest. How do I capture the value found? .... I tried \1 and {1} AL 32.2679134368897 -86.5251510620117 AR 35.2315113544464 -92.2926173210144 AZ 33.3440766538127 -111.955985217148 CO 39.709863142533...

What is the easiest way to create a overview 'outline' of the most important sections of an app in VS 2005 (VB.net) ?

I want to code in our VB.net to be a little easier to follow both to improve readability and also make it a lot easier to know the best place to put a new bit of code/feature. Essentially, I'd like to have a 10,000 foot "outline" of the code" with hyperlinks from the outline to the code. It needs to be portable, so BookMarks won't do t...

The Following Module was built either with optimizations enabled or without debug information

I cannot get rid of this in my VS 2008 web project when debugging. I've checked that it's in debug mode on the non-web project in question and it's in Active(Debug). Deleted all items in my .NET 2.0 temp folder in Windows. Not sure what else to do here. ...

How to interact Visual Source Safe with Visual Studio 2005 ?

I use Visual Studio 2005 and I wanted to setup Visual Source Safe 8.0. I run the setup and It works properly I can access VSS administration tool and visual source safe via start menu. But, I can not see File / Source Safe menu in my Visual Studio 2005. Does anyone know how can I interact my visual source safe and visual studio ? SO...

Visual Studio 2008 New Web site always creates a solution folder

Every time I create anew Web site project in VS it creates another folder for a solution file. \WebSiteName\ \WebSiteName(2)\ In my VS solution explorer it only shows as a Web Site project, no solution file above it. Is there a way I can stop VS creating the solution file when all I want is a web site? Or is it something VS needs? ...

Test Projects Conversion

I apologize. This is part rant, part question. For the rant: Dear MS developers who post MVC projects on CodePlex and dedicate their sites to MVC with TDD: I love to learn from you and thanks for the examples, but not everyone has Pro. I'm sick of not being able to load the test project portion of these things because use Standard, whi...

/MT and /MD builds crashing, but only when debugger isn't attached: how to debug?

I have a small single-threaded C++ application, compiled and linked using Visual Studio 2005, that uses boost (crc, program_options, and tokenizer), a smattering of STL, and assorted other system headers. (It's primary purpose is to read in a .csv and generate a custom binary .dat and a paired .h declaring structures that "explain" the ...

Visual Studio Find and Replace Regular Expressions

How do I match a digit in Visual Studio? My first guess: \d is not working for me. I s there a list of special characters in visual studio? ...

Force a reference to be absolute using Visual Studio

When adding a reference to a web application project in VS (2008 in this case), the "hintpath" in the csproj file is being created as a relative reference. Is there a way (using the GUI, not manually editing the file) to make this an absolute reference (i.e. C:\Temp\DllName.dll)? The issue I am running into is when seperate build machi...

Is there a Windows equivalent of EDQUOT?

I'm porting some C++ code from UNIX to Windows which detects the occurrence of the EDQUOT error, which indicates that there was an unsuccessful attempt to exceed the current user's disk quota. Visual Studio's <errno.h> doesn't have an EDQUOT, although I know that Windows has disk quota functionality. Visual Studio's <errno.h> does have a...

Property is null, even after being set in code.

Hello, I've been trying to solve this for ages (3 days) now and I just cannot figure it out. I will try to explain the problem comprehensively because it is a bit more complex. My school assignement is to create a simple text game using OOP in C# Visual Studio 2008 (should be built on a library the teacher provided for us). It should o...