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

remove '.' as an R language editor.wordSeparators #1503

Merged
merged 1 commit into from
Mar 22, 2024

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
6 of 8 checks passed
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