Skip to content

Conversation

@opasche
Copy link
Contributor

@opasche opasche commented Mar 21, 2024

Removing '.' from the R word separators

Variable and function names in R can have the . character in them.
Removing it from the "[r]": "editor.wordSeparators" enables selection of the whole variable or function name instead of just part of it.

Example

Double-clicking on the base function as.matrix in the editor:

  • before change: only selects either as or matrix.
  • after change: selects as.matrix

I think the latter is a more desirable behaviour when editing an R file.

Copy link
Member

@renkun-ken renkun-ken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Thanks!

@renkun-ken renkun-ken merged commit d582b91 into REditorSupport:master Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants