How to remove git difference indicators in Visual Studio 2022? - visual-studio

I opened Visual Studio 2022 today and got these symbols on my left sidebar.
I didn't enable those, they just appeared. If i click on them, they show this:
They are really annoying, especially since the red arrows appear on the right sidebars in nearly the same color as error indicators.
I couldn't find an option to turn these off, or find a solution online. Does anyone know how to get rid of them?

You will want to turn off Git Line Staging support.
Go to Tools → Options → Environment → Preview Features and uncheck the "Git line-staging support" option and restart the IDE.
Visual Studio Version 17.3 turned this feature on by default. By turning it off, Visual Studio will revert back to having the "green and yellow" change indicator bars instead of these Git ones. It will also remove those red arrows you speak of.

Related

Turn off coloured change tracking areas in Visual Studio 2022

Visual Studio 2022 now shows if content is edited or new on the left side of the text editor:
I think this used to be in the scrollbar and could be turned off there. Now I don't see it in scrollbar options and can find nothing on google about turning it off.
Right clicking on it does nothing, I've looked around in Options but can see nothing.
How do I turn this off?
thx
Open Visual a Visual Studio Project go to : Tools/Option/Text Editor/ General And turn Off the Flag on 'Track Changes' checkbox.

How do i turn off a Visual Studio refactor tool. (and use the resharper one)

I'm using Visual Studio and ReSharper. When clicking a "switch" statement, sometimes a "black hammer" icon is displayed and sometimes it's a yellow lightbulb. Like this:
i'm not sure which one is which, but i think, one of the icons is displayed by visual studio, the other by resharper. (i assume the yellow one is resharper, because it has more funktionality and for design reasons.).
is there a way i can turn off the "black hammer" one alltogether? Or, is there a reproducible way to allways get the same icon? Right now i have no idea why sometimes the hammer comes up and the lightbulb other times.
The 'bulb' and 'hammer' icons are both supplied by ReSharper (see here). You can merge the Visual Studio features with ReSharper's by adjusting the ReSahrper->Options...->Environment->Editor->Visual Studio Features settings.
You can change the icon theme by adjusting ReSharper->Options...->Environment->General

I want "track changes" in Visual Studio to show changes that have not been commited to version control

"Track changes" in Visual Studio shows what lines have been edited in the current session (shown next to the scroll bar). But to me it is much more meaningful to see what lines have changed from the last version in version control.
In Eclipse this is possible. Is it possible to have the same in Visual Studio? I am using VisualHg, and Mercurial, but I suppose the same principle should apply for other version control solutions.
I suppose you want to see the changes next to the scroll bar such as the track changes.
I don't know how to achieve that. But I use TortoiseSVN and have an addon for VS (ankhSVN is the name, I guess), which lets me do a right click on the file and do show changes. There pretty sure is an equivalent addon for mercurial.
Maybe an addon such as Power Tools or VS Commands may provide a way of marking the lines you've changed next to the scroll bar.

Class names not coloured in Visual Studio 2012

I am evaluating Visual Studio 2012 and am having some problems with the color schema.
Sure enough I was able to overcome the initial discomfort by setting my color for the text editor.
One thing I have not been able to set corrent are the color for the class names.
Say you have a line like below.
Class name = new Class();
the entire line is in the same color, expect the new keyword.
I want the word 'Class' to be in a different color like in earlier versions of Visual Studio.
I am not able to set the color for this from the Option.
I have tried chaning color for all fields like plain text, literals, identifier, etc under
Tool -> Option -> Environment -> Font & Colors
but still I am not able to fix this.
I have also applied custome themes, those are also not helping.
I wouldn't want to install a productivity power tool for such basic preference right ??
Edit:
I'm on Windows 7 x64 and Visual Studio Professional 2012, Version 11.0.50727.1 RTMREL
The solution I found is a combination of the suggestions found in a mish mash of related threads:
Close Visual Studio and open the VS command prompt as an administrator. Navigate to the devenv.exe file (in Express versions it is titled something along the lines of *express.exe) usually located in C://Program Files (x86)/Microsoft Visual Studio 11.0/Common7/IDE.
Type devenv.exe /setup
Reopen Visual Studio. If everything is all colored now, great! If not, close the tabs and reopen them.
Performing all of step 3 is what has got my coloring to come back to normal.
Here is where I got the suggestions:
Visual Studio 2012 - Intellisense sometimes disappearing / broken
How can I get user type C# syntax highlighting working again in VS 2012 RC?
If you're using Productive Power Tools, go to => Tools -> Options -> Productive Power Tools. In main menu, TURN OFF the option: Colorized Parameter Help.
I solved my problem, I'm on Windows 8 Pro, Visual Studio 2012 Ultimate.
You're on the right track. Under Tools -> Options -> Environment -> Fonts and Colors, you want to change "User Types", first making sure at the top of the dialog that you are viewing the settings for the "Text Editor"
Although, by default with my install of Visual Studio 2012 these were already set, so you may want to try the "Use Defaults" button, unless you've made other changes that you want to keep.
go to the tools >Option click on enviroment navigation and click on import and export setting and copy the url and open directory from the url and delete all font and color file .which you got setting folder
The workaround provided by Donatas on Microsoft Connect works without having to turn off any option of Productivity Power Tools:
There is a workaround without turning off "Colorized Parameter Help".
Go to Tools > Options > Environment > Fonts and Colors in Display
items select "User Types (Value types)" click Custom next to Item
foreground color and in the color picker change Red, Green or Blue by
1, i.e. to make a custom color which basically looks the same. OK on
all the dialogs and problem solved.

Visual Studio 2010 - Productivity Power Tools - Highlight Current Line's colour resets on VS reload

I have Visual Studio 2010 Pro installed with "Productivity Power Tools" being the only extention and "Highlight Current Line" the only option enbled on that extention.
I then change the colour of the "Current Line (Extention)" to a darker colour (as my background is black not white and the light grey is to harsh)
BUT every time I open/restart Visual Stuio 2010 the current line is highlighted with the default light grey colour again. I can correct this by opening up "Tools", "Options...", "Enviroment", "Fonts and Colors" and clicking "OK" but I need to do this EVERY TIME I load VS2010.
Does anyone know a work around or solution to this?
Thanks in Advance.
EDIT:
Just to be clear the settings are NOT lost they are just not applied after I start VS2010 until I enter the "Fonts and Colors" option section and just click OK.
I don't even need to change or reapply the settings as they are already there! I suspect a fault in the power tools extension but from what I have read on the site MS aren't updating them now as they are working on the next version of VS.
I know of no real reason this is happening to you. I suggest you get the latest updates of Visual Studio 2010 and Power Tools if you haven't already.
As a work around you might save your settings through the Tools|Import and Export Settings menu. Export only Options>Environment>Fonts and Colors
Disable the powertools option for current line highlight and enable the Resharper current line highlight.
Works like a charm

Resources