Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Highlighting code window of visual studio based on line number using VSPackage

$
0
0

I'm building a VSpackage extension to create "VisualStudio Tool Window". I have a grid inside tool window, consisting of numbers. If a user selects a particular row of the grid. That particular line of code should be highlighted.

To be more clear, Suppose my grid contains:

row 1 - 10, row 2 - 15, row 3 - 14,

if user selects row 1, then 10th line in the code window should get highlighted. Is this feature possible using VisualStudio package. I have a strong feeling that this is possible.Because most of the search results work that way.

Any help on the same is greatly appreciated!!


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>