Visual Studio 2017 & 2019 highlight occurrences of selected word in scrollbar

ぃ、小莉子 提交于 2019-12-03 04:02:29

问题


When I mark a word (of any kind) I would like all occurrences (in that particular file) of that word to be highlighted in the scrollbar on the right hand side.

This was a feature in VS2015 and VS2013. I cannot imagine that they removed it, I just don't know how to switch it on. None of the apparent possibilities in Tools -> Options (image) helps me.

Ps. I am using Visual Studio 17 Professional. Thank you.


回答1:


This was a feature in VS15 and VS13.

Actually it was not.

It is a feature of the Productivity Power Tools extension. That extension is now just an installer for separate single feature extensions. I think you'll be wanting Match Margin.




回答2:


Right now, the only way I know (without installing new extensions) is to select (double click) the word and hit ctrl-f (find). Scroll map should highlight all occurences (mine are orange)




回答3:


There's another extension which does exactly this, with options to customize colors and more. it called Word Highlight With Margin.

The extension created by Trung Kien Phan

Screenshots

VS2017/VS2019 Version

Download link from Visual Studio market place - VS2017, VS2019

Previous versions:

VS2015

VS2010, VS2012, VS2013



来源:https://stackoverflow.com/questions/43229545/visual-studio-2017-2019-highlight-occurrences-of-selected-word-in-scrollbar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!