Class names not coloured in Visual Studio 2012 - visual-studio

I am evaluating Visual Studio 2012 and am having some problems with the color schema.
Sure enough I was able to overcome the initial discomfort by setting my color for the text editor.
One thing I have not been able to set corrent are the color for the class names.
Say you have a line like below.
Class name = new Class();
the entire line is in the same color, expect the new keyword.
I want the word 'Class' to be in a different color like in earlier versions of Visual Studio.
I am not able to set the color for this from the Option.
I have tried chaning color for all fields like plain text, literals, identifier, etc under
Tool -> Option -> Environment -> Font & Colors
but still I am not able to fix this.
I have also applied custome themes, those are also not helping.
I wouldn't want to install a productivity power tool for such basic preference right ??
Edit:
I'm on Windows 7 x64 and Visual Studio Professional 2012, Version 11.0.50727.1 RTMREL

The solution I found is a combination of the suggestions found in a mish mash of related threads:
Close Visual Studio and open the VS command prompt as an administrator. Navigate to the devenv.exe file (in Express versions it is titled something along the lines of *express.exe) usually located in C://Program Files (x86)/Microsoft Visual Studio 11.0/Common7/IDE.
Type devenv.exe /setup
Reopen Visual Studio. If everything is all colored now, great! If not, close the tabs and reopen them.
Performing all of step 3 is what has got my coloring to come back to normal.
Here is where I got the suggestions:
Visual Studio 2012 - Intellisense sometimes disappearing / broken
How can I get user type C# syntax highlighting working again in VS 2012 RC?

If you're using Productive Power Tools, go to => Tools -> Options -> Productive Power Tools. In main menu, TURN OFF the option: Colorized Parameter Help.
I solved my problem, I'm on Windows 8 Pro, Visual Studio 2012 Ultimate.

You're on the right track. Under Tools -> Options -> Environment -> Fonts and Colors, you want to change "User Types", first making sure at the top of the dialog that you are viewing the settings for the "Text Editor"
Although, by default with my install of Visual Studio 2012 these were already set, so you may want to try the "Use Defaults" button, unless you've made other changes that you want to keep.

go to the tools >Option click on enviroment navigation and click on import and export setting and copy the url and open directory from the url and delete all font and color file .which you got setting folder

The workaround provided by Donatas on Microsoft Connect works without having to turn off any option of Productivity Power Tools:
There is a workaround without turning off "Colorized Parameter Help".
Go to Tools > Options > Environment > Fonts and Colors in Display
items select "User Types (Value types)" click Custom next to Item
foreground color and in the color picker change Red, Green or Blue by
1, i.e. to make a custom color which basically looks the same. OK on
all the dialogs and problem solved.

Related

Visual Studio 2010 - Productivity Power Tools - Highlight Current Line's colour resets on VS reload

I have Visual Studio 2010 Pro installed with "Productivity Power Tools" being the only extention and "Highlight Current Line" the only option enbled on that extention.
I then change the colour of the "Current Line (Extention)" to a darker colour (as my background is black not white and the light grey is to harsh)
BUT every time I open/restart Visual Stuio 2010 the current line is highlighted with the default light grey colour again. I can correct this by opening up "Tools", "Options...", "Enviroment", "Fonts and Colors" and clicking "OK" but I need to do this EVERY TIME I load VS2010.
Does anyone know a work around or solution to this?
Thanks in Advance.
EDIT:
Just to be clear the settings are NOT lost they are just not applied after I start VS2010 until I enter the "Fonts and Colors" option section and just click OK.
I don't even need to change or reapply the settings as they are already there! I suspect a fault in the power tools extension but from what I have read on the site MS aren't updating them now as they are working on the next version of VS.
I know of no real reason this is happening to you. I suggest you get the latest updates of Visual Studio 2010 and Power Tools if you haven't already.
As a work around you might save your settings through the Tools|Import and Export Settings menu. Export only Options>Environment>Fonts and Colors
Disable the powertools option for current line highlight and enable the Resharper current line highlight.
Works like a charm

VS2010 Only show file names in tabs

My website has several nested folders and sometimes long file names, so sometimes only 4 tabs can be opened at a time.
Can vs2010 be made to show only file names and leave out any path information?
Can the max displayed length for tabs be set?
I know the window can be split so top and bottom both have their own tabs.
For example (using the "Visual Studio 2010 Pro Power Tools"):
Showing the files:
...r.aspx.cs
...s.aspx.cs
...s.aspx.cs
...s.aspx.cs
...s.aspx.cs
For example (not using the Visual Studio 2010 Pro Power Tools):
Showing the files:
Adminstration/...quests.aspx.cs
Adminstration/...tUsers.aspx.cs
Adminstration/...ctions.aspx.cs
Adminstration/...eBanks.aspx.cs
Try installing the "Visual Studio 2010 Pro Power Tools" extension from the Extension Manager in VS. It adds a new section to the standard option dialogue that allows you to customise what they call the "Document Tab Well."
It doesn't let you truncate the filename, but you can change the way they draw and scroll, which might be enough to help.
It does allow more tabs at a time, but it severly shortens the amount of file name you see. So while it allows editing more files, you won't know what file you are editing.
For now I'm using the trial version of Tab Studio
In VS2010, go to Tools - Extension Manager. Go to the online gallery and search for this extension:
Visual Studio 2010 Pro Power Tools
This extension, once installed, gives you extensive control over the document well, including setting a max tab width and much more. I love this extension, and have had zero issues customizing tab behavior to suit my preferences. Hope this helps.
Fixed in Visual Studio 2012
This has finally been fixed in Visual Studio 2012:
So i see:
PendingRequests.aspx (rather than ...r.aspx.cs)
ImportUsers.aspx.cs (rather than ...s.aspx.cs)
SearchTransactions.aspx.cs (rather than ...ctions.aspx.cs)
ImportTimeBanks.aspx.cs (rather than eBanks.aspx.cs)
Now if we could just get the entire Visual Studio ecosystem to:
return to the use of Left, Right arrows to navigate overflow tabs
open new tabs on the right
just like Windows has been doing in 1994, and Visual Studio would start to almost become a user-friendly Windows application.
I have been using this excellent extension for VS2010 that solve your problems: Visual Studio 2010 Pro Power Tools.
It is a bundle of several extensions, but the most notable for you is the Document Well 2010 Plus. It allows you to configure the document tabs: to be the constant width, colour-coded by project, pinned, etc...
You can toggle the extensions that you do not want by editing the manifest file in:
~\Local Settings\Application Data\Microsoft\VisualStudio\10.0\Extensions\Microsoft\Visual Studio 2010 Pro Power Tools\
#IanBoyd: I agree, it doesn't solve the problem 100% however it helps (which is why most of the answers to this question suggest it). With the Visual Studio 2010 Pro Power Tools add-on you can a) set the maximum tab width using one tab options, b) setup some colour categorizing rules to help differentiate between projects/file types.
In VS2010, my workflow relies upon several add-ons and keyboard shortcuts to manage my workspace; for example I use CTRL + Tab to switch between active documents, use the pin-tab feature and colour coding from Power Pro Tools, the open solution file dialog from Visual Assist X, and re-open last edited file from Resharper.
This has been answered already here:
Remove path from tab name in Visual Studio 2010
Install the productivity power tools extension and it should do it by default!
Cheers.

Visual Studio - Current file in Solution Explorer - Make it darker?

I don't want to change the entire background color of solution explorer in VS, only the selected file.
Hints?
Thanks.
Check out Tools > Options > Projects and Solutions, and then check off "Track Active Item in Solution Explorer". This will make whichever file you're viewing/editing inside of Visual Studio automatically be selected in Solution Explorer and if your Windows color scheme is set up properly, it will in fact be darker.
This option used to be on by default in 2003 and maybe 2005, but 2008 has it disabled by default now... I personally prefer it turned on.
HKEY_CURRENT_USER\Control Panel\Colors\ButtonFace is the registry key that sets the background color of the current file in solution explorer when solution explorer has not focus, this is what I found for Vs2010 and windows 7 - could not seem to find interface to modify the button face color in the gui. many things use this color, so I set just dark enough to see.
I have no idea why you want to do that in the first place, curious :)
Anyway, I doubt you can change the entire UI's background color depending on the type of file /editor mode.
You might find more clues from these:
Visual Studio - Fonts and Colors, Environment, Options Dialog Box
Changing your colors in Visual Studio.NET - Black versus White
How to increase your Visual Studio environment fonts for presentations?

visual studio property missing characters

I've just started up visual studio express 2008 for the first time in 6 months, and the when I expand the properties window, all the name/values are rendered as squares. Event the ellipses (...) are squares! The weird thing is, all other text is OK, the code, toolbar, menus etc.
What font/character set does visual studio use for this text? and why is only the propert window affected?
That's fairly odd. I haven't seen a bug like that yet.
If it is a font issue, you can fix it by resetting all of your settings. Go to Tools -> Import / Export Settings. Reset all settings and pick your profile. Rebuild and Restart Visual Studio and see if the problem goes away.
My second guess would be to check the file encoding. Visual Studio should work fine with most file encodings but it's not bad to sanity check. Click on File -> Save As and set the text type to be ASCII. Then restart Visual Studio and see if the problem goes away.

CodeRush Xpress Colors

I downloaded the free CodeRush Xpress version to try it. Is there a way to change the colors it uses for it's highlighting and line drawing? ie the matching braces. I have a dark color scheme and my monitor I have VS on must suck because I can't see the lines. Yet on the LCD I can. Is there a way to change the colors?
I use CodeRush Xpress 9.2. It is possible to configure some colors used for highlighting in the Options menu of CodeRush Xpress. You can find the menu in Visual Studio under DevExpress -> Options. Go to the Painting sub-item of the Editor item to control some of the colors used (among them Navigation Fields, Navigation Links and Text fields).
If the DevExpress menu doesn't appear in your Visual Studio installation, just press Alt+Ctrl+Shift+O to directly go to DevExpress Options. Or, if you permanently want the DevExpress menu entry in Visual Studio, set the following registry key and restart it:
[HKEY_LOCAL_MACHINE\SOFTWARE\Developer Express\CodeRush for VS\9.2]
"HideMenu"=dword:00000000
This works at least with Visual Studio 2005 and 2008.
Just found this online... You can open their control menu with this key combination: ctrl+alt+shift+o
i'm using VS 2008 for the record & CodeRush xpress 9.2. i didnt see a menu in Visual Studio anywhere and i didnt find that registry setting either.
If you're using a 64bit machine the path will be different:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Developer Express\CodeRush for VS

Resources