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

后端 未结 3 673
暖寄归人
暖寄归人 2020-12-24 04:52

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

相关标签:
3条回答
  • 2020-12-24 05:04

    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.

    0 讨论(0)
  • 2020-12-24 05:09

    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)

    0 讨论(0)
  • 2020-12-24 05:23

    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

    0 讨论(0)
提交回复
热议问题