radian
radian copied to clipboard
Using radian in VSCode, how to open a file in the main editor pane (not at the prompt)?
Hi there
If I run usethis::edit_r_profile()
at the radian prompt in VS Code, it opens the file in the nano
editor within the console. By comparison, in RStudio if I run this command at the console, it opens the .Rprofile
file in the source pane.
How can I tell radian to open the file in the main editor pane, not in nano?
(nano doesn't work inside VS Code as for example Ctrl-K - to delete a line - is captured by Code, instead of being actioned within nano, and it then expects another kbd shortcut chord)
It should work if you enable r.session.emulateRStudioAPI
is enabled in vscode settings.