I would like to select an R code block via a shortcut.
At the moment I am using CTRL L
to select the current line and CTRL ALT UP/DOWN
to expand the selection. This, however, is cumbersome.
Is there any way to tell VS Code to select everything in a paragraph?
Example:
library(dplyr)
starwars %>%
filter(species == "Droid")
starwars %>%
|mutate(name, bmi = mass / ((height / 100) ^ 2)) %>% # <- The cursor is where "|" is for example
select(name:mass, bmi)
This is what should be selected in this example:
starwars %>%
mutate(name, bmi = mass / ((height / 100) ^ 2)) %>%
select(name:mass, bmi)
CodePudding user response:
This could be done with the aid of an extension. See, e.g., the
To select the block from anywhere, you also need a macro extension like