Highlighting matching selected text

Answered

I just started evaluating Rider, and I really like it so far

One feature I miss from Visual Studio is that when I select a block of text, Visual Studio will highlight matching text elsewhere in the file.

As shown in the following image, text inside Method2 was selected, and the matching text inside Method1 is highlighted.

 

Is this feature available in Rider or through a plugin? I looked around the settings, but nothing jumped out.

 

I should point out that I can kind of get this behavior by selecting text and opening the Find... field (CTRL+F), but it's not quite the same as having the highlight update immediately as the selection changes.

6 comments
Comment actions Permalink

Hi Michael, 

Don't you use any plugins for this in VS? 

Try Sticky Selection plugin in Rider, is it what are you looking for?  

0
Comment actions Permalink

Alexandra,

Thanks for replying. Actually, the selection behavior is due to a VS extension: Productivity Power Tools from Microsoft DevLabs. It's the "Show matches in the editor" option under "Match margin options".

The StickySelection plugin looks interesting. I'm also trying out BrowseWordAtCaret. Thanks for the suggestion!

 

0
Comment actions Permalink

hello,

I'm evaluating Rider, a great cross platform product so far.

I used to work with VS in Windows, VS Code in Linux, and now Rider on Ubuntu 20.04.

I've just installed Sticky Selection on Rider 2020.1.4, and it's not working at all, had to remove it.

It's a bit pity that such a sophisticated IDE which has EVERYTHING built-in is missing such a tiny feature, which all modern editors have today.

Wish you add this feature ASAP.

Thanks, and keep all the good work going on.

 

1
Comment actions Permalink

Sticky Selection didn't do what I wanted, but BrowseWordAtCaret helps somewhat.

The attached animated GIF should show how BrowseWordAtCaret behaves.

  • You can't select entire lines from the left-most column. 😢
  • The selection must begin and end with alphanumeric characters, otherwise the matching selection disappears.
  • At the end of the animation, I repeatedly add and remove the semicolon from the selection to highlight the issue.

It would be nice if we had a proper solution for this included in Rider, but I'd also be happy if the BrowseWordAtCaret was updated to allow for full line selections that could begin and end with non-alphanumeric characters.

3
Comment actions Permalink

     Hello, Tomer Shamam!
     What exactly does not work in Sticky Selection?
     I checked the work “Sticky Selection” and this plugin works well. I performed the following steps:
     1. Installed “Sticky Selection” from https://plugins.jetbrains.com/plugin/7341-sticky-selection
     2. Added several “New Paint Group”
     3. Selected some lines and used this key combination “Ctrl + Alt + F9”

     Note. Rider has the “Find Usages” that performs the same action by uses  “Ctrl + Alt + F7” key combination.

     I attached the video of how it works.
     https://recordit.co/IBJ3d2cEn3

     Best regards,
     Maxim Isaev.

0
Comment actions Permalink

Thanks Maxim, for demonstrating how to use it.

I didn't expected it to be like that.

Just wanted to double clock on a word, and replicas will be highlighted all over.

Just like in VS Code and other modern editors.

Cheers

9

Please sign in to leave a comment.