Skip to content
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

additional options for editor.selectionHighlight #8050

Open
vogler opened this issue Jun 23, 2016 · 13 comments
Open

additional options for editor.selectionHighlight #8050

vogler opened this issue Jun 23, 2016 · 13 comments
Labels
editor-contrib Editor collection of extras feature-request Request for new features or functionality
Milestone

Comments

@vogler
Copy link

vogler commented Jun 23, 2016

  • VSCode Version: 1.2.1
  • OS Version: OS X 10.11.4

Having the current word highlighted is convenient, but too distracting when moving around and accidentally leaving the cursor on a keyword (e.g. let .. in in OCaml).
Turning it off, one has to fall back to search and lose the previous results.

Maybe it would make sense to introduce options to:

  1. only highlight if a whole word is selected (i.e. e.g. with a double click)
  2. only highlight non-keyword words
  3. only highlight identifiers
@Bill-Stewart
Copy link

+1 - I like selected matches to be highlighted, but I would like to be able to disable automatic keyword highlighting.

@alexdima alexdima added feature-request Request for new features or functionality editor-contrib Editor collection of extras labels Mar 2, 2017
@alexdima alexdima added this to the Backlog milestone Mar 2, 2017
@alexdima alexdima removed their assignment Mar 2, 2017
@andreagualandi
Copy link

+1

3 similar comments
@pietrovismara
Copy link

+1

@cheoAlejo
Copy link

+1

@Densaugeo
Copy link

+1

@gaoliang
Copy link

+1

@AndiDog
Copy link

AndiDog commented Jan 12, 2018

In this code

let foo = foobar + bazboom;

selecting "foo" will lead to two highlights. I'd like to be able to configure editor.selectionHighlight to only highlight matches on word boundary i.e. search for \bfoo\b to not highlight foobar in the above.

@mattiacoppini
Copy link

+1

@a7madgamal
Copy link

can we add selecting across open tabs?
If not I can open a ticket for it

@blacktop
Copy link

blacktop commented Feb 2, 2019

+1

@internetlee
Copy link

+1 needed to disable this because highlighting all matches of a single character is just too distracting to justify having it on for the useful cases

@spajak
Copy link

spajak commented Apr 24, 2022

+1

@bkuri
Copy link

bkuri commented Sep 27, 2022

Please also consider adding an option to only select exact matches (ie case-sensitive) when double-clicking.

Another worthwile setting (related to @leegenes' above comment) would be to skip highliting on items with less than n characters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor-contrib Editor collection of extras feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests