-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Highlight selected text is not applied to all opened files #30014
Comments
Almost 2 month has passed since, |
This is exactly the feature I am looking for. When I almost submitted a feature suggestion, I found this. It has been almost 2 years. |
Are there any plugins which support this behaviour? |
Here are a few plugins that do the highlight of all occurrences of a word within a single document. I requested to all the developer to add the ability to highlight across multiple views. https://github.com/ryu1kn/vscode-text-marker |
@cliffordfajardo added the feature to his plugin : https://github.com/cliffordfajardo/highlight-selections-vscode#multi-tab-support |
@xucongli1989 also added the feature to his plugin : https://github.com/xucongli1989/highlight-icemode |
ryu1kn/vscode-text-marker#44 with correct behavior, waiting for merge |
2021 and still not addressed 😢 Please let us know the plans on this |
This is a must. I'm new with vscode, but I came from Atom and this is a time saving feature, specially when working with multiple monitors and multiple views. |
2022 and counting 😢 |
June 2022 and this still isn't a feature. This is a must if you are going kill off Atom now. At least make your text editor better before forcing many people to switch. |
Upgraded to 1.68.1 but it still doesn't work for me. Are you using an extension to make it work? which one? Thanks! |
Yeah my bad, I did have an extension doing this. It's "highlight-icemode-select" |
That does mostly what I want. Was able to change the background color to make it "none". One thing that I still don't like is, if you select the word "for", it will catch all the words, but it will also highlight the word "for" inside of "format". Atom didn't have this problem. It would highlight everything that matched exactly what was selected. |
UPDATE: With begin-again's Add the following to your
|
@kenijo You can press CTRL+F (CMD+F for Mac) and there is a button you can click in the Find pane that defaults the highlights to "Whole Word Selection". This makes it function for the double-click as well. Only issue I could really see is if you want to do a search for a variable or something that you don't remember the entire name of. In that case you can just switch back temporarily to search for it. |
Thanks, that's a good alternative. The one thing I don't like about highlight-icemode-select is that it highlights even on multiline selections. I wish that could be disabled (it is distracting). I'll stay with (multiwindows-highlight)[https://github.com/aki12n/multiwindows-highlight] for now |
Thank you all! highlight-icemode-select does exactly what I need! The thing I miss now is the minimap doing the same, showing selections in multiple views... anyway the icemode extension is a big step. |
Here you go: select-highlight-minimap |
Many times the same entity is referenced in multiple files (like json/yaml key names, recurring data/logs, global vars), so having this would help a lot. |
I am coming from Atom too (reluctantly - thanks Microsoft!) and this is something that has stopped me switching to VSC in the past. Highlight-icemode looks good, but is there a way to get the selected word highlighted in the minimap as well? There are marks in the minimap border, but they don't line up. I can't make any sense of them. I used this feature in Atom constantly to see quickly where else the selected word is from the minimap. |
I wish this was there too. There are a few enhancement requests on the VSCode GitHub related to this but so far I haven't seen anything come to fruition. |
Just came across this and the above mentioned |
On my instance, highlight-icemode-select does not highlight the word in the minimap. Am I missing something? |
Sorry @jheller I meant that |
i made something that might help with this one https://marketplace.visualstudio.com/items?itemName=ctf0.cross-editors-selections |
The cross-editors-selections extension is a start in the right direction, but it only highlights the selected text in the minimap. I have another extension that highlights all occurences of the selected text in the editor, and I would like to see that reflected in the minimap. Atom was able to do this so well, and it's the feature I miss most. |
it really depends on your editor configuration, ex. |
this depends on your editor configuration, maybe you got used to a selection modifier made by other extensions, but this outside the extension scope.
plz check the editor minimap settings
the extension i made is not for this usage, plz check the readme |
Selecting text for highlight(either by marking it or by double clicking) highlight the selected text only in selected opened file but not in all opened files in other panels.
In addition, the highlight marker is not visible in map preview.
The text was updated successfully, but these errors were encountered: