visual-studio

How to show Call Stack, Immediates, and other hidden windows in Visual Studio.

I closed the call stack and other default windows in VS2008. How do I get them back? I expected to find a command under the View menu, or atleast under the View\Other Windows menu. Nothing. Thanks. ...

How do I tell Visual Studio to exclude folders from the Find in Files?

We use subversion so we have subfolders named _svn in our solution. Doing a Find in Files returns strings from these subfolders. Is there anyway to tell Visual Studio to ignore these files? ...

Including header files in Visual Studio

Suppose I have a solution with 3 projects X,Y, and E. E will generate an executable and X and Y will generate static libraries such that Y includes the header files of X and E includes the header files of Y. Now, my question is: why do I have to include the directory of the header files of X in E? ...

Does visual studio 2010 Premium include the contract tools?

According to this feature matrix, Visual Studio 2010 Premium (RC) includes "static code analysis". However, adding calls to Contract.Requires at the start of my methods doesn't seem to have any effect. I don't get runtime exceptions if the contract is violated. I don't get compiler warnings if a contract cannot be proven. I also can't f...

ReSharper Keyboard Map

Hi guys: I have been using ReSharper from before Visual Studio added Refactor. Then, it was inevitable to use ReSharper. Now that Visual Studio includes a few Refactor functions, I get to do projects where the client can do without paying for the ReSharper licence. My problem is that I am so used to the ReSharper keymap that switching...

Why is Batch Build disabled in Visual Studio for projects that use TFS?

In both VS 2008 and 2010 I either don't see it or it is disabled, but only when the project is under TFS source control. For normwl projects it works just fine. ...

Creating .cpp files from .h files visual studio

I am using Visual Studio 2008, and I was wondering if it was possible to create the .cpp files given the header files. So if I have a .h files with a class and functions, it can create the code file with all the functions typed in with a blank body ...

Granularity of Syntax Coloring in Visual Studio

I am crazy about syntax coloring, where different source-code elements are displayed in different colors. Nowadays, good coloring is right up there with proper indentation when it comes to my ability to read code. Taking a look under Tools/Customize/Fonts and Colors, I can see that in some cases there is fine granularity; you can give d...

how to Decrypt Application settings before binding?

hi all, I am using Application settings in my c# project to save gmail username and password. Before saving the settings I am encrypting the plain text password. When I am restarting the app retrieving them is of course without any problem but the retrieved password is encrypted. What I want is to decrypt it back before binding back t...

Step execution of release code / post-mortem debugging (VS/C++)

Is there any sense to step-execute release code? I noticed that some lines of code are omitted, i.e. some method calls. Also variable preview doesn't show some variables and shows invalid (not real) values for some others, so it's all quite misleading. I'm asking this question, because loading WinDbg crashdump file into Visual Studio br...

vb.net - automatic XML comments - ''' -- Can I change the automatic defaults?

I'm using Visual Studio 2008 SP1 in VB.NET, when I type ''' above a function, some automatic default XML comments appear: ''' <summary> ''' ''' </summary> ''' <remarks></remarks> I would like this to be the following instead: ''' <summary></summary> ''' <remarks></remarks> Is there a way to change what appears when you type ''' a...

How do you port a theme from Silverlight to WPF?

It's "easy"! I just came across this blog post by Rudi Grobler that says it's "easy" to port a theme from Silverlight to WPF. Unfortunately, he doesn't say how to do it. Download and install I have installed both the WPF Toolkit and Silverlight Toolkit from Codeplex. I also went and dug up the source code for the theme I'm interest...

Add a Right-Click Menu Item in Visual Studio using C#?

How to write an add-in that allows me to right click on the files hierachy tree to do something that will display something? This is exactly what I want (2nd part of the video), but it is in VB, I need C# version. I know little about Visual Studio Add-in and I don't know VB, so I can't use the codes there:( http://msdn.microsoft.com/en-...

Visual Studio 2010 and 2008 mixed development environment possible?

We are looking at migrating to Visual Studio 2010. Is it possible for some developers to use Visual Studio 2010 and other to use 2008 on the same solution/projects? How will it affect our VSTF builds (VSTF Server 2008)? ...

What is the accepted practice for adding Nunit tests to an existing solution?

I have inherited a reasonable sized ASP.net solution that has no automated tests. The solution seems to include all of the source/pages in one solution with no name-spacing and no separation of tiers, so there are direct SQL calls within code behind files etc. Before making changes to this site I would like to add some unit tests, prefe...

Recommended Post-SP1 Visual Studio 2008 Hotfixes

Today I had to reinstall. I used to have some hotfixes installed for VS2008 but no longer have them and can't remember why they were necessary. I'm expecting any security-related hotfixes to come through Microsoft Update, but I'm interested in VS bug fixes. Does anyone have a list of hotfixes that they recommend installing for Visual St...

Can you tag a section of code to be included only in the Debug build?

Sorry for the extreme newbie question, but I couldn't find the answer elsewhere and haven't actually ever done anything like this myself (go figure -- I guess that happens when your company uses the production environment for testing). It would be nice if Visual Studio offered some mechanism for specifying that certain segments of code ...

Display a folder in visual studio

I have a folder with a group of 3rd dlls that I want to show up in Visual Studio. The reason being that I am using VisualSvn and I want to be able to see when these have been updated from within visual studio. ...

How to open header file (.h) in visual studio 2005

I'm tired of right clicking on the header file in c++ and choosing open document "blahblah.h" Is there a keyboard shortcut? ...

Visual Studio 2010 Beta 2 and PHP

Seems like Visual Studio 2010 Beta 2 has PHP syntax highlighting. But is there any way to create PHP files or projects from VS itself? If yes, how can I create one? P.S. Don't suggest vs.php (jcx.software) please, as I'm looking for it's alternative. ...