Highlight of matching code elements - Visual Studio - C# - visual-studio

Is there any help to find out, which option to use (Tools- Optoions- Environment- Fonts and Colors) for changing the background highlight of matching code elements like if/else in the example.
The question is about visual studio and not about visual studio code.

Related

Where is the documentation on Visual Studio's decorators?

Note: This is not for Visual Studio Code, but for the full version of Visual Studio.
When developing extensions for Visual Studio Code, there is something called Decorators, which can add icons next to each line of code.
I'd like to do the same, but for Visual Studio instead. However, I can't find anything by the name "Decorators" in the documentation. Is it even called that within the full Visual Studio?
Can anyone point me in the right direction?
More specifically, I am interested in making an extension that can produce the icons seen here, and I am unsure what these icons are called in the scope of Visual Studio:
Vertical part where icons are shown is called "glyph margin" and icons in it are called "margin glyphs". Provided link will lead you to a MSDN walkthrough to create your own glyph for a line that has a "todo" text in a comment.
I found a sample that describes it pretty well:
https://github.com/Microsoft/VSSDK-Extensibility-Samples/tree/master/Todo_Classification

Is there a way to extract comments from code files with DTE (Visual Studio Automation)?

I want to extract comments from code files in a Visual Studio extension. Is there a way to do it using Visual Studio Automation without having to parse code text myself?
PS: Roslyn is not a choice, because I'm not restricted to C# and VB.NET only.
Various code elements like CodeClass and CodeFunction have the Comment property that return the header comment, accessible using Visual Studio code model.
And if a document is opened in VS editor, you can check SnapshotSpan classifications for PredefinedClassificationTypeNames.Comment.

how to disable word automatic highlight in visual studio 2019?

In visual studio 2019, if you click a word, it will highlight all its occurrences.
But if click some blank place, it will de-highlight all.
I only want to highlight the words when double-clicking it, and de-highlight the words if I double click it again.
It differs for each programming language. For C/C++ it's:
Tools/Text Editor/ C/C++ /Advanced/Disable Reference Highlighting (in
References section)
"MultiWordHighlight" is a great extension which can replace visual studio's internal feature.

Delphi IDE - Enable highlighting of selected variable (like Visual Studio)

In Visual Studio when I highlight a function or variable all other instances of it also get highlighted. I find this to be very useful. Does anyone know if Delphi can do this somehow? When using the search in Delphi it highlights all found instances, so sometimes I quickly copy and search but this is a lot slower than just clicking the text.
Visual Studio highlighting:

emmet conflicting with snippets visual studio 2013

Every time I type an emmet string and press tab visual studio replaces it with just the main element. Then i realized it was preferning the the snippet that it was auto suggesting. Is there a way around this or fix it? I am using Visual Studio 2013 Community edition on windows 7 64bit if that makes any difference
I found the problem, I was using another plugin called Viasafora that colors braces and makes it easier to to see your indentations it had a default option for showing completions ans you type. I had to go turn it off.

Resources