Syntax coloring on unity visual studio? - visual-studio

For some reason nearly everything is simply white, I'd prefer the more varying colors based on like, what kind of thing you are typing. I just recently started so I don't know the terminology. I see a lot of Unity tutorials that have coloring like that. Thanks!
I'm using a cs file

I think what may work for u is this
Inside Visual Studio - go to Tools and scroll to Options
Text Editor
C# and then Advanced
and choose Visual Study 2019 under Editor Color Scheme

You may need to reload the project. In Solution Explorer it may state:
Assembly-CSharp (unloaded)
Right click this text and select Reload Project from the resulting context menu

Related

Code color code and highlighting for unity

I have just starting learning how to make games in Unity, using Visual Studio as the Script Editor, I see other people have their Code colour coded and it also has auto completion.
I've followed some tutorials online but nothing has worked for me.
what do I have to install to get it working?
To add auto-completion you have to add the unity visual studio package. To add this package please type in your windows search field: "Visual Studio Installer" and then click at the visual studio version the button "change". After that, a new window opens in this window click the field with the unity package and then install this package. Now you have auto-completion in Visual Studio.
To add colors look this video: https://www.youtube.com/watch?v=_g1TyAGk6Lk& I really recommend this color theme.
The Color Coding of Code can be found on the Tools>Options>Environment>Fonts and Colors. For example, you want to change the color for the Operators (+, -, /, *, etc.), you would need to find it in the Display items List and edit (found on the Right Side of the Display Items) the color of the foreground (the text itself), it's background or whether it is displayed in bold or not.
I believe that auto completion or IntelliSense is on by default as for what I have Experienced in switching from MonoDevelop to Visual Studio 2017.
Actually, i think you're looking at a popular visual studio plugin called Resharper;
https://www.jetbrains.com/resharper/
It also has a Unity3D plugin (for resharper) which adds full support. That's were the coloring and extra intellisense comes from.
You can see some sample pictures here; https://github.com/JetBrains/resharper-unity

Add color scheme to VS2015 drop down menu

This may not be (most likely not) the correct StackExchange site, but I couldn't find the one that I thought would be more correct. If there is a better site just comment with it and I'll gladly delete this question and move it.
What I'm trying to achieve is getting color schemes added to the Color theme: drop down menu inside of Visual Studio's Options -> Environment -> General -> Visual experience. Is this possible? What is involved?
Very much possible, use the extension Visual Studio 2015 Color Theme Editor from Microsoft

Is there plugins/addons for visual studio 2010 to change the code and text editor's background color?

I have been looking for , lets use the word "mods", for visual studio left and right to be able to change the background and font color of the code editor for quite a while now. This is a simple question and hopefully not a duplicate of Is it possible to change backround color of editor and autocomplete tooltips in Visual Studio?. If I can refine my question a bit more, is it possible to manually change the background color of the code and text editor, or does mods or plugins or addons exist somewhere to do this feature for me? My eyes are straining on the white background...
I am using visual studio 2010
From the main menu, go to Tools -> Options. From there open up Environment -> Fonts and Colors. If you don't want to spent the time configuring it that way (which would be completely understandable), download the theme editor, or pick and download a nice theme at http://studiostyl.es/

CSS style errors in Visual Studio while compiling

Whenever I use CSS3 style commands (like Box-shadow, Box-Sizing, background gradient,etc ) in my Visual Studio 2010 projects and compiles it, VS shows one or more errors regarding CSS3 styles. How can I overcome this behavior of Visual Studio?
You can turn off CSS validation errors in Visual Studio from Tools menu. Select Tools > Options and perform the action shown in the following image.
Up the top there is drop down text box (next to comments in toolbar). Open that and see if you have HTML5/CSS3 in there. If not, you have to download it from MSDN.
I have a better answer for you than the currently accepted answer. It's actually just a small change to said answer and here it is. Just check the "as warnings" box. So it doesn't show up as an error (which is good because it ain't one), but it does show up in your pleasantly-ignorable warnings list still.

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?

Resources