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

add a short cut for" <-" #618

Open
PPSHOU opened this issue Dec 7, 2024 · 1 comment
Open

add a short cut for" <-" #618

PPSHOU opened this issue Dec 7, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@PPSHOU
Copy link

PPSHOU commented Dec 7, 2024

Just like in the R studio, I hope we could use the short cut: alt+"-" for "<-", as a lot of people use quarto for R language and it is convenient for them to input the "<-" by a short cut, hope you could add it to the extension. and add a shortcut for creating an R code chunk, that would be so very helpful.

@cscheid cscheid added the enhancement New feature or request label Dec 9, 2024
@juliasilge
Copy link
Collaborator

If you use Positron this keyboard shortcut (plus one for the pipe) is available when editing .qmd files with R code.

If you are using VS Code, you can set up a custom keyboard shortcut yourself in a similar way that Positron does:

{
  "key": "alt+-",
  "command": "type",
  "args": { "text": "<-" },
  "when": "quarto.document.languageId == r"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants