Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

Define keybindings for R in Visual Studio Code

$
0
0

I'm using Visual Studio Code to write and edit my R-scripts. Therefore I want to create some keybindings like:

nrow(*selected*)

length(*selected*)

So i installed the 'R Extension Pack' (with R & R LSP Client) for Visual Studio. With "ctrl + enter" i could run selected code like this:

{ "key": "ctrl+enter",
  "command": "r.runSelection",                               
  "when": "editorTextFocus && editorLangId == 'r'" }

But how could I run the selection to get the nrow() or length()?


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>