radian icon indicating copy to clipboard operation
radian copied to clipboard

Using radian in VSCode, how to open a file in the main editor pane (not at the prompt)?

Open francisbarton opened this issue 2 years ago • 1 comments

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)

francisbarton avatar Aug 03 '22 10:08 francisbarton

It should work if you enable r.session.emulateRStudioAPI is enabled in vscode settings.

renkun-ken avatar Aug 04 '22 01:08 renkun-ken