VSSDK-Extensibility-Samples/Highlight_Word
WillBrown2000 f59cecb137 Upgraded extensibility documentation (#92)
* Updated new picture for ReadMe file.

* Updated Example.BuildProgressBar.png, Updated ReadMe file with correct references.

* Updated Example.CaretFishEye.png and Readme.md with current references

* Updated Example.CodeSweep.png and Readme.md with current references

* ReadMe.md updates and ComboBox.png update

* fixed typo

* Updated ReadMe.md references.

* Updated Example.CommandTargetRGB.png

* Updated references in Readme.md and Example.CompletionTooltipCustimzation.png.  Upgraded to make roundtripable.

* Fixed Typo in Readme.md

* Removed typo.

* Updated ReadMe.md and Example.DiffClassifier.png

* Updated Reame.md and Example.EditorWithToolBox

* Updated Readme.md and Example.SpelllingError.png

* fixed typo

* updated Example.HighlighWord.png and Readme.md

* Updated ReadMe.md and Example.IntraTextAdornment.png

* Updated Example.LightBulb.png and readme.md

* Updated Example.MSDN.png and Readme.md

* Updated Example.MenusAndCommands.png and ReadMe.md

* Fixed Typo

* Updated Example.Ook.png and Readme.md

* updated ReadMe.md

* Updated Example.OptionsPage1.png and Readme.md

* Updated Example.Package.png and readme.md

* Updated Example.Reference.Service.png and Readme.md

* Fixed Typo

* updated Example.RTDEvent.png and readme.md

* Fixed typo.

* Fixed Typo

* Fixed typo in png name

* updated Example.SingleFileGenerator.png and Readme.md

* updated Example.SingleFileGenerator.png

* Updated Example.SccProvider.png and readme.md

* Updated Example.SourceControlStatus.png and readme.md

* Fixed file locations

* Fixed typo

* Updated Readme.md and Example.ToDoClassification.png

* Fixed Typo

* Updated Readme.md

* Updated png and readme.md

* Fixed white space

* Corrected file location

* Updated Example.ToolWindow.png and Readme.md

* Fixed Typo

* Updated Readme.md

* Fixed white space
2017-06-06 16:00:53 -07:00
..
C# Upgraded extensibility documentation (#92) 2017-06-06 16:00:53 -07:00
Readme.md Upgraded extensibility documentation (#92) 2017-06-06 16:00:53 -07:00

Readme.md

Highlight Word Sample

Highlight any words that match the word currently under the text caret in Visual Studio.

  • Technologies: Visual Studio 2017 SDK
  • Topics: Visual Studio Editor, VSX

Description

This Visual Studio 2017 sample extension uses tagging and adornments to highlight all occurences of the word currently under the caret.

image

Requirements

Visual Studio 2017

Get all samples

Clone the repo (How to):

git clone https://github.com/Microsoft/VSSDK-Extensibility-Samples.git

Run the sample

  1. To run the sample, hit F5 or choose the Debug > Start Debugging menu command. A new experimental instance of Visual Studio will launch.
  2. Once loaded, open any file in the Editor window.
  3. Place the text caret on a word that appears multiple times in the text file. The word and all other instances of that word will be highlighted blue

Project Files

  • AssemblyInfo.cs

This file contains assembly custom attributes.

  • HighlightWordTagger.cs

This file provides the tagger class that will highlight the word under the text caret and any additional instances.

  • HighlightWordTaggerProvider.cs

This file is called by Visual Studio to generate the tagger

Functional Tests

  • Verify the sample builds in all configurations
  • Verify that the sample was registered. The About box should list the product as installed
  • Verify that the tagger highlights any additional instances of the currently highlighted word

Related topics