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.
Please sign in to leave a comment.
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
Sticky Selection didn't do what I wanted, but BrowseWordAtCaret helps somewhat.
The attached animated GIF should show how BrowseWordAtCaret behaves.
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.
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.
Hello, David,
Thank you for clarifying the scenario. Currently, it works for keywords and symbol names, but not for arbitrary text. Please upvote this feature request to indicate your interest in the feature: IDEA-98569.
Let me know if you have any other questions.
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?
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!
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.
New Rider user here, looking for this same functionality,
3 years later, still not available?
Hello, David,
If you're referring to highlighting selected words in the document, it has been implemented in Rider since this thread was last updated. Let me know if it's not what you're looking for.
Ivan Skorikov in VSCode and VS2022, in the code editor, when next to a word, or by selecting it via keyboard or mouse, or some letters from the word, all matches in the editor get highlighted for any file type, that doesn't happen for me in Rider, only very few full words get highlighted and only for certain file types, I'm using version 2023.3.2