Change background color in Solution Explorer in Visual Studio

Is there a way to change the background color in Solution Explorer in Visual Studio using a theme? - or in any other way in this regard?

I can change it by changing the color settings in Windows, but obviously this affects too much.

+57
visual studio
Oct 09 '08 at 20:20
source share
5 answers

Just created VS extension for him in less than an hour, search extension manager for "SExColor". Enjoy;)

+35
Oct. 25 '11 at 10:16
source share
โ€” -

@aloneguid ... Had to see this a long time ago .. thanks sir!

@ver (regarding solution vs 2008 for solution;) - an approach like B52, carpet bombardment of everything that SysTreeView32 inside devenv.exe. A possible additional parameter for the desired color, otherwise RGB (220,220,220) is the best for me.

#include <windows.h> #include "psapi.h" #include "shlwapi.h" #include "commctrl.h" COLORREF clr = RGB(220,220,220); BOOL CALLBACK wenum( HWND hwnd, LPARAM lParam) { const UINT cb = 261; static wchar_t name[] = L"SysTreeView32", tmp[cb] = {0}; if( ::GetClassNameW( hwnd, tmp, 260 ) && 0 == _wcsicmp( name, tmp ) ) { ::SendMessageW( hwnd, TVM_SETBKCOLOR, 0, (LPARAM)clr ); } return TRUE; } BOOL CALLBACK EnumTops(HWND hwnd, LPARAM lParam) { DWORD dwThreadId = 0, dwProcessId = 0; HINSTANCE hInstance; static wchar_t derVS[] = L"devenv.exe"; wchar_t name[_MAX_PATH] = {0}, *exe = 0; HANDLE hProcess; if (!hwnd) return TRUE; // Not a window if (!::IsWindowVisible(hwnd)) return TRUE; // Not visible if (!SendMessage(hwnd, WM_GETTEXT, sizeof(name), (LPARAM)name)) return TRUE; // No window title dwThreadId = GetWindowThreadProcessId(hwnd, &dwProcessId); hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, dwProcessId); if( !GetModuleFileNameEx(hProcess, 0, name, sizeof(name))) goto exit; exe = ::PathFindFileNameW( name ); if( (void*)exe == (void*)name ) goto exit; // mhm? maybe not exit? if( _wcsicmp( derVS, exe ) ) goto exit; EnumChildWindows( hwnd, wenum, (LPARAM)hProcess ); exit: CloseHandle(hProcess); int res = GetLastError(); return res; } int wmain(int argc, wchar_t * argv[]) { if( argc >= 2 ) { wchar_t *end = 0; long l = wcstol( argv[1], &end, 16 ); clr = (DWORD)l; } ::EnumWindows(EnumTops, NULL); return 0; } 
+10
Feb 07 2018-12-12T00:
source share

Not using any configuration from Visual Studio itself.

However, you can probably โ€œcrackโ€ a window object from the Win32 API (look for โ€œwindow enumerationโ€). Once you have a window handle, you can set all the necessary characters.

Hello

/Robert

+4
Oct 09 '08 at 20:30
source share

Even changing the default background color of Windows does not work for Solution Explorer. This Visual Studio report indicates a problem. Microsoft marked this as "Closed - will not be fixed."

This is very annoying! Using a dark theme and the presence of a bright white Solution Explorer, hanging on the side of the screen, is extremely annoying.

One possible solution is to not use the solution explorer at all. Powerivity Tools provides a replacement Explorer Solution called "Solution Navigator". Currently, it is also hardcoded to white. But I think that there is probably a better chance of getting the developers of this tool to add support for changing colors than forcing Microsoft to do this in Visual Studio. (although Microsoft created PPT.)

+4
Oct. 29 '10 at 15:37
source share

You can use a different extenssion, you have pretty big opportunities to make your Visual Studio more attractive;) (but I'm not sure if you can change the Explorer Explorer background)

http://visualstudiogallery.msdn.microsoft.com/20cd93a2-c435-4d00-a797-499f16402378

+3
Mar 30 '12 at 7:14
source share



All Articles