Unable to change theme in VS Code? - macos

am not getting any error or anything, but VS code by default always switches to a Dark+ (default dark), even if in my system setting I have selected Light theme (I have a MacBook Air). This is too much frustrating and I also uninstalled and installed VS Code 2-3 times and am unable to change the behaviour. Please let me know if you need any additional info with this question, I will provide it.
An additional point on this problem, when I press CMD +, to open setting, and under appearance, I change the Color Theme, it let me change. And then when I open a file (a python file suppose) or just switch to an opened file it changes back to Dark+ (default dark). I don't know how to solve this behaviour. Please help.

I think VS Code is just doesn't follow the system theme (I observed this in my Windows 10 machine). Also cmd+, is not the place to change VS code theme.
You can try CmdP and enter >color theme to select a theme.

VS code doesn't follow system theme, do cmd + K, then let go of K while holding cmd and press T. Or you can cmd + K THEN cmd + T. There you will get a menu where you will get your color options.

I reset workbench settings to default and then added the following to settings.json and it solved my problem.
"workbench.colorTheme": "GitHub Dark Default",
"window.autoDetectColorScheme": true,
"workbench.preferredDarkColorTheme": "GitHub Dark Default",
"workbench.preferredLightColorTheme": "GitHub Light Default",

Related

How to reset code formatting to default settings in visual studio? (Without having to reset all my settings)

I am having problems editing powershell files in visual studio. The text that are meant to be comments show in large green text that make it very hard to read. I have no idea how it got this way. It is possible it may be an extention causing the problem. But the first step is to try reset it to defaults...
So how do I do that without resetting all my settings? (or if anyone else can suggest a different solution I am all ears)
Below is a screenshot of what I see...
You can reset the fonts and colors for the editor under Tools => Options => Environment => Fonts and Colors => "Use Defaults" (top right).
It turns out that it was DevExpress' Coderush addon causing the problem. It is actually the 'RichComments' feature that is causing the issue
I must have accidentally click on the toolbar option without realising. Now I know.
To make the issue go away, one just has to toggle the button on the toolbox.

Remove strange blue box in visual studio

This blue rectangle is fixed on the screen. Sometimes growing, shrinking and changing place.
tried the answer to this question:
In the Visual Studio SQL editor, how do I get rid of the boxes?
as I thought it might be related but didn't help.
How to get rid of it?
The box is drawn by Windows' Narrator feature for people with low vision. I recently accidentally toggled this myself by hitting winkey+enter. Hitting it again and moving the mouse cursor seems to toggle it back off again as well.
As mentioned below, depending on the narrator shortcuts configured on your system one of the following may work:
winkey+enter.
caps lock+esc
Full overview of narrator hot keys can be found here.
For some reason Winkey + Enter didn't work for me. However I found Caps Lock + Esc did the trick. See Narrator Shortcuts for more info
It looks like you have an extension installed which is adding that box. Try disabling extensions until you find the one that is causing this
Tools -> Options -> Extension Manager

android studio prompt code complete color and font doesn't work

both prompt and code complete are not working in android studio.
also color and font are trouble some.
checked configuration is ok.
reinstall doesn't work.
i think it should missing some file or there is some problem in ui component.
BTW,in osx.
====================================
find the answer,i chosed the power save mode,which in file menu.
i don't think power save mode is a goods function.just like the shit.

How do I change even line background colours in Visual Studio?

I find the dark theme much easier to concentrate in, but I think I mucked something up a while ago and it turned the dark theme text editor into a monstrosity:
I tried clicking reset to defaults in this menu:
But it appears that that menu does not control this specific part because it did not change it back (Or god forbid it's supposed to look like this)
Does anyone know the solution for this?
It looks like you have an extension installed that is providing that coloring. Go to Tools->Extensions and Updates and check if there's anything about alternating line colors (perhaps this extension), and disable or uninstall it.

What is this colour scheme element?

I'm using VS2010 with ReSharper and "Son Of Obsidian" theme and have the following frustrating highlighting issue in String.Format sections.
Selecting a method (or any) parameter gives the grey background - see string bString in picture. But the highlighting inside the String.Format string is different, and unreadable.
In "Tools > Options > Font and Colors" I've tried: "Selected Text", "Inactive Selected Text" and "Highlighted Reference" both in vain.
So please:
a) What do I need to change
b) Is there a decent way of finding it out (I've tried doing a screen grab for the Hex color code and searching for that in the style XML, but that doesn't work)
After an age of trying this out on my home PC I've discovered the element in question is ReSharper Matched Format String Item
There should really be an easier way of finding this stuff out
It appears your cursor is in an Intellisense Code Snippet field.
Could it be Code Snippet Field?
Paddy's reply pointed me in the correct direction, but my issue was slightly different. I'm going to post my solution here in the hope that it might help others.
I'm using VS2013 and Resharper 8. My issue was that Resharper had not been able to import it's own Font and Colour settings on installation. For me, the Resharper options shown in Paddy's image were not visible. This is a known issue with Resharper installation and the solution is as follows:
1) Close all Visual Studio instances
2) Open C:\Program Files (x86)\Microsoft Visual Studio {VS version}\Common7\IDE\Extensions\extensions.configurationchanged file
3) Type anything there
4) Save the file
5) Open VS and check Fonts and Colors in Tools | Options | Environment
(source)
For me, as soon as I reopened VS, Resharper had been able to import its own settings and the highlighting issue was already fixed without needing any further action from me.
Now, when trying to edit the extensions.configurationchanged file, I also ran in to an "Access is Denied" error message (I'm running Windows 7 as an admin). To overcome this I had to open Notepad as an administrator (Start > right click notepad > Run as administrator) and then use File > Open to open the extensions.configurationchanged file.
I hope this helps people in the future!

Resources