Skip to content

Select leading $ when double clicking a word #92

Closed

Description

@addshore

When I have a code snippet such as:
$languageFallback = new TermLanguageFallbackChain( [
I may double click on the $languageFallback with the intention of copying the whole string including the $.
Current vscode behaviour with phptools is to not copy the $ which ends up being quite annoying, needing the $ to be added back.
Is this the sort of thing vscode allows plugins to alter?
IT would be a great feature IMO.

Activity

  1. jakubmisek commented on Aug 27, 2020

    @jakubmisek
    Member

    This is controlled by VSCode setting editor.wordSeparators where you have to delete $ character.

    This can be configured for a single language [php] as mentioned in the comment microsoft/vscode#33701 (comment)

    It seems, for now, this feature is not extensible. But we might be able to set the user setting upon first use.

  2. addshore commented on Aug 27, 2020

    @addshore
    ContributorAuthor
  3. addshore commented on Aug 27, 2020

    @addshore
    ContributorAuthor

    I guess this could be reopened if you want to get this as an automatic phptools thing! :)

  4. jakubmisek commented on Aug 27, 2020

    @jakubmisek
    Member

    Thanks, we'll check if this can be automatic because, at least, we'd like to be consistent with full Visual Studio behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions