Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

visual studio 2013 highlight the whole word

It seems to me that I haven't changed anything in the vs editor configuration, but in the latest days I found this.

When using vs 2013 update 2 rc, I click inside a single word in the cs editor, instead it places the caret inside the word, but the whole word is highlighted with a background color that is not compatible with the dark theme.

If I click on a word and press cancel the word is not deleted, so there is no selection, but simple highlighting of the word.

Do you know where can I find the setting to restore this with correct values?

enter image description here

like image 309
Luca Morelli Avatar asked May 06 '14 19:05

Luca Morelli


People also ask

How to highlight a selected word in Visual Studio Code?

This extension is adapted from the sample VS code extension decorator-sample, inspired by atom-quick-highlight. It creates a decoration for each selected word that appears in all editors. You can add words by chosing Highlight Toggle Current from the command pallet, this will highlight the word at the cursor or the selection.

How do I highlight all occurrences of a word in word?

1) Install the extension and verified that it is enabled in the Tools->Extension Manager. 2) In the editor window, select a word with a mouse or keyboard. All occurrences of the word selected should be highlighted in the current document.

How do I create a highlightwordtest solution?

Name the solution HighlightWordTest. Add an Editor Classifier item template to the project. For more information, see Create an extension with an editor item template. Delete the existing class files. The first step in highlighting text is to subclass TextMarkerTag and define its appearance. Add a class file and name it HighlightWordTag.

How do I add visual effects to the editor?

You can add different visual effects to the editor by creating Managed Extensibility Framework (MEF) component parts. This walkthrough shows how to highlight every occurrence of the current word in a text file. If a word occurs more than one time in a text file, and you position the caret in one occurrence, every occurrence is highlighted.


2 Answers

I guess you are using C#, so I'm posting instructions on how to disable it on the C# editor (It's the same procedure for other languages)

Go to:

Tools => Options => Text Editor => C# => Advanced

Once on the Advanced panel, uncheck the Highlight references to symbol under cursor option.

enter image description here

like image 94
Matias Cicero Avatar answered Oct 15 '22 17:10

Matias Cicero


I've had a similar problem after installing VS2013 update 2 - in addition, I also found that my resharper color settings with dark theme were completely messed up and I couldn't find a way to reset or update it (in VS fonts settings).

Anyway, I finally solved the problem by:

  1. deleting the following registry key:

    HKCU\Software\Microsoft\VisualStudio\12.0_Config

  2. Run devenv /ResetSettings from VS 2013 admin command prompt
like image 27
Adriaan de Beer Avatar answered Oct 15 '22 18:10

Adriaan de Beer