'How to change the colors of the modified lines indicator in version 17.2?
I updated Visual Studio 2022 Preview to version 17.2 Preview 6.0, and after doing so, the colors and appearance of the changed lines indicators are "modernized" (similar to Visual Studio Codes) to be blue for modified lines (instead of yellow). There are also some other appearance changes, such as an unfilled green bar for added lines that aren't saved (which I think previously would also just be a yellow bar).
In this screenshot, the circled blue line is "Modified" (saved) which previously would be a green line I believe. The circled unfilled green bar is "Added - Not Saved".
I checked the preview patch notes, but nothing seems to point out what changes this. What is the setting for changing the behavior of these indicators?
Solution 1:[1]
This is apart of the "Line Staging" feature, which is actually tied to Git. In update 17.2 of Visual Studio, the feature was turned on by default. The patch notes do mention this feature, but it's not readily obvious from the patch notes alone that this feature is what changed this.
By unchecking this checkbox and restarting Visual Studio, you can get back the original color scheme of the change indicators. Some of the other appearance changes do not revert back however. The changed line indicator is now an unfilled yellow bar (instead of solid) that turns to a solid green bar when saved. Obviously, you will also lose the ability to use any of the other features introduced with this feature when you uncheck this box.
It appears that there are also individual color settings that you can change if you want to keep this feature enabled but try and maintain the original color scheme of the indicators.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Timothy G. |