Colors in Visual Studio Extension

Yes, binding to static VS resources is the best approach. It is supported in VS 2012+ and looks like this: <ResourceDictionary xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” xmlns:vs_shell=”clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.11.0″> <Style TargetType=”Label”> <Setter Property=”Foreground” Value=”{DynamicResource {x:Static vs_shell:EnvironmentColors.ToolWindowTextBrushKey}}”/> </Style> <Style TargetType=”TextBox”> <Setter Property=”Foreground” Value=”{DynamicResource {x:Static vs_shell:EnvironmentColors.ToolWindowTextBrushKey}}”/> <Setter Property=”Background” Value=”{DynamicResource {x:Static vs_shell:EnvironmentColors.ToolWindowBackgroundBrushKey}}”/> </Style> </ResourceDictionary> See EnvironmentColors Class for all avilable colors.

In Visual Studio (2008) is there a way to have a custom dependent file on another custom file?

There is VSCommands add-in which allow you to configure dependant files directly from IDE Link updated, previous was http://mokosh.co.uk/vscommands FYI: When VSCommands is installed, just select all the files you want to be Dependant and the root file, then Right Click -> Group Items… and VSCommands will ask which of the files you would like … Read more

Differences between running an executable with Visual Studio debugger vs without debugger

Windows Heap behaves differently if process is started under the debugger. To disable this behavior (in order to find a problem while debugging) add _NO_DEBUG_HEAP=1 to environment (like in this question). Alternatively you can attach to process early in program execution. Heap will not enter the debug mode then. Add DebugBreak() line somewhere in the … Read more

Is there any option to switch between C99 and C11 C standards in Visual Studio?

The only ‘modes’ supported by Visual C++ are: /std:c++14 mode for C++14 conformance (the default), /std:c++17 mode for C++17 support which is not quite complete as of VS 2017 (15.6). There is also a /std:c++latest mode which at some future point will include things in C++20. All of these should be combined with /permissive- for … Read more