Skip to content

execute code in R console upon pressing enter #5180

Answered by benzipperer
benzipperer asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for trying!

Could my problem be related to the setting "Editor: Accept Suggestion on Enter"? I had changed this to "off". Can you reproduce after changing that setting?

When that setting is off, I have the problem in the screencast above: typing mtcars then pressing ENTER starts a new line. Though it's not in the screencast, hitting ENTER a second time executes the code.

When that setting is on, I have a different problem: if I type mtcars, then ENTER "accepts" the suggestion of mtcars (which I had already typed anyways). Hitting ENTER a second time executes the code without starting a new line.

I'd prefer to just use TAB to accept suggestions and reserve ENTER to execute the code …

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@juliasilge
Comment options

@benzipperer
Comment options

Answer selected by lionel-
@lionel-
Comment options

@benzipperer
Comment options

@juliasilge
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants