Sysprogs forums › Forums › VisualGDB › Random change of colors in syntax highlighting
- This topic has 10 replies, 3 voices, and was last updated 3 months, 1 week ago by jk1124.
-
AuthorPosts
-
August 16, 2023 at 01:43 #34587MarioRParticipant
Hello everybody,
I have been using VisualGDB for a long time now. Since I installed the latest version (5.6, currently as trial) in VS Community 22 (Version 17.6.2) the colors of the syntax highlighting are changing from time to time. Especially, the color of the brackets are black and defines are in an ugly blue. It is a very annoying behavior.
To reset the colors, I have to reinstall the theme (One Dark Pro) again. Is there a setting I need to change to prevent this random color changing?
Best regards,
Mario
August 17, 2023 at 12:36 #34591supportKeymasterHi,
It looks like your technical support period has expired. We would be happy to help you, however we would kindly ask you to renew your technical support on the following page first: https://sysprogs.com/splm/mykey
August 27, 2023 at 08:01 #34634MarioRParticipantHi,
my license has been renewed 🙂 Back to my question again: Is there a setting I need to change to prevent this random color changing?
Regards,
Mario
August 27, 2023 at 08:33 #34635supportKeymasterHi,
Thanks for renewing your license.
VisualGDB uses the regular Visual Studio color storage to manage its syntax highlighting colors. Sometimes, changing the theme breaks the values stored there, and restarting VS normally restores them. If not, changing the theme there and back, and then restarting typically fully fixes the colors.
If a specific color is off, you can change it directly as shown on this page: https://visualgdb.com/documentation/colors/
August 31, 2023 at 10:37 #34650MarioRParticipantThis issue continues to recur, one moment the fix works, and the next time I open VS, it malfunctions once more. This behavior is consistent across both my main desktop PC and my working laptop. It’s hard to believe that I’m the only one experiencing this problem.
I also tried the default VS theme … same behavior. I attached a screenshot of the color change.
Do you know what is causing this? Maybe a bad combination of VS plugins or settings? I am searching for a permanent solution because it’s really annoying.
Regards,
Mario
Attachments:
You must be logged in to view attached files.August 31, 2023 at 10:46 #34652supportKeymasterHi,
It is probably caused by some rare combination of settings you use on both computers, or by a conflict with another VS extension. Our best advice would be to first try disabling other VS extensions. If it doesnt’ solve the problem, try pinpointing one specific color that gets broken (e.g. the preprocessor directives shown on the screenshots) and try manually overriding it to something visually different (e.g. green), and restarting VS a few times. Does the setting get reverted at any point? If yes, is there a specific trigger to it?
September 7, 2023 at 06:04 #34690MarioRParticipantHi again,
I disabled all extensions except for VisualGDB. As you recommended, I manually changed one color. However, this color also broke when it happened again. After switching between the default blue theme and One Dark Pro, the colors were right, including the manually altered one.
I disabled VisualGDB and used One Dark Pro for some normal Qt programming. No random changes of the colors occur. In my opinion, it must be the combination of VisualGDB and One Dark Pro.
Do you have any suggestions what the cause of this?
Mario
September 7, 2023 at 06:19 #34691MarioRParticipantAddition:
This only happens when the currently opened solution contains an embedded project.
September 7, 2023 at 08:46 #34694supportKeymasterHi,
This is a tricky one. In our experience, the Visual Studio color storage is prone to sometimes resetting/mixing up colors. Normally, VisualGDB can automatically detect it and reset the cache, but it could be that the One Dark Pro uses some other workaround that interferes with it.
Our best advice would be to try the regular VS dark color theme, and tweaking it to match the colors from One Dark Pro.
July 30, 2024 at 17:56 #35847jk1124ParticipantI have the same issue. My workaround is manually change these color settings. Although, it is hard to find out which display-item is what I want.
Tool>Options>Environment>Fonts and Colors>Text Editor
Display items > Operator (for the symbols “=”, “:”)
Display items > Preprocessor Keyword (for #if)August 14, 2024 at 04:54 #35860 -
AuthorPosts
- You must be logged in to reply to this topic.