Random change of colors in syntax highlighting

Sysprogs forums Forums VisualGDB Random change of colors in syntax highlighting

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #34587
    MarioR
    Participant

    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

    #34591
    support
    Keymaster

    Hi,

    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

    #34634
    MarioR
    Participant

    Hi,

    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

    #34635
    support
    Keymaster

    Hi,

    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/

    #34650
    MarioR
    Participant

    This 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.
    #34652
    support
    Keymaster

    Hi,

    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?

    #34690
    MarioR
    Participant

    Hi 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

    #34691
    MarioR
    Participant

    Addition:

    This only happens when the currently opened solution contains an embedded project.

    #34694
    support
    Keymaster

    Hi,

    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.

    #35847
    jk1124
    Participant

    I 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)

    #35860
    jk1124
    Participant

    And this
    Tool>Options>Environment>Fonts and Colors>Text Editor
    Display items > Refacotring Suggestion (ugly light gray, variable type is auto)

     

     

     

    • This reply was modified 3 months, 1 week ago by jk1124.
    • This reply was modified 3 months, 1 week ago by jk1124.
Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.