Skip to content

Highlight selected text is not applied to all opened files #30014

Closed

Description

@aviadb
  • VSCode Version: 1.14.0
  • OS Version: Windows 10

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.

Activity

  1. added
    feature-request
    editor-contrib
    and removed on Jul 3, 2017
  2. aviadb commented on Aug 30, 2017

    @aviadb
    Author

    Almost 2 month has passed since,
    without any progress.

  3. kenijo commented on Nov 18, 2017

    @kenijo

    I am definitely in favor of this feature which I am used to with Notepad++ (which they call Smart Highlighting In All Views). To help people understand, here are a couple of screenshots:

    Current behavior when highlighting the word "car" in the left view (matches are highlighted only in the left)
    image 2

    Expected behavior when highlighting the word "car" in the left view (matches are highlighted in both views)
    image 3

  4. kai6novice commented on Apr 3, 2019

    @kai6novice

    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.

  5. begin-again commented on Sep 21, 2019

    @begin-again

    Are there any plugins which support this behaviour?

  6. kenijo commented on Sep 23, 2019

    @kenijo
  7. added this to the Backlog milestone on Oct 24, 2019
  8. 20 remaining items

  9. electrovir commented on Dec 21, 2022

    @electrovir

    Just came across this and the above mentioned highlight-icemode-select extension is accomplishing this feature perfectly for me.

  10. jheller commented on Dec 21, 2022

    @jheller

    On my instance, highlight-icemode-select does not highlight the word in the minimap. Am I missing something?

  11. electrovir commented on Dec 21, 2022

    @electrovir

    On my instance, highlight-icemode-select does not highlight the word in the minimap. Am I missing something?

    Sorry John Heller (@jheller) I meant that highlight-icemode-select is solving the "Highlight selected text is not applied to all opened files" problem perfectly. I can't say anything about the mini-map part as I don't use those, sorry!

  12. jheller commented on Apr 18, 2023

    @jheller

    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.

  13. ctf0 commented on Apr 18, 2023

    @ctf0

    but it only highlights the selected text in the minimap

    it really depends on your editor configuration, ex."editor.hideCursorInOverviewRuler": false, again the extension does nothing outside the usual editor behavior, so i would recommend to disable any selection modifier/highlighter extensions & see if the editor behave as you expect.

  14. jheller commented on Apr 18, 2023

    @jheller

    OK. I removed the highlight-icemode extension I was using. Now in the editor it only highlights the selection, not other occurences of it in the editor. And the minimap just shows the selection - and that is barely visible.
    Here is what I would like to see. This image is from the Atom package minimap-highlight-selected, which worked in conjunction with the highlight-selected package. When a word is selected it shows (very clearly) all occurences of it in the editor and in the minimap. I found it extremely useful. image

  15. ctf0 commented on Apr 18, 2023

    @ctf0

    Now in the editor it only highlights the selection, not other occurrences of it in the editor

    this depends on your editor configuration, maybe you got used to a selection modifier made by other extensions, but this outside the extension scope.

    And the minimap just shows the selection - and that is barely visible

    plz check the editor minimap settings

    When a word is selected it shows (very clearly) all occurences of it in the editor and in the minimap. I found it extremely useful.

    the extension i made is not for this usage, plz check the readme

  16. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Oct 24, 2023
  17. locked and limited conversation to collaborators on Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

editor-contribfeature-requestinsiders-releasedon-testplan

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions