Rstudio 中的 %>% 键绑定/键盘快捷键 [英] %>% key binding / keyboard shortcut in Rstudio

查看:48
本文介绍了Rstudio 中的 %>% 键绑定/键盘快捷键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用 magrittr 包中日益流行的 %>% 运算符.

I've been experimenting quite a bit with the increasingly popular %>% operator from the magrittr package.

我已经用得够多了,我已经设置了一个键盘快捷键来节省我的打字时间:

I've used it enough that I've set a keyboard shortcut to save me typing:

shift+command+. 而不是 spaceshift+5shift+.shift+5空格.

shift+command+. instead of space, shift+5, shift+., shift+5, space.

这在 SublimeTetxt2 中很棒,但是 Rstudio 不允许在我在 Rstudio 项目中工作时它不起作用的服务.

This is great in SublimeTetxt2 but Rstudio does not allow services it does not work if I'm working within Rstudio projects.

这将与 alt+- 绑定完全同义,用于分配 <- 运算符,它是 oxy to the水獭.

This would be exactly synonymous with the alt+- binding for the assignment <- operator that is oxygen to the otter.

如果有人能指出我在 github 存储库中编码快捷方式的位置,以便我可以破解"我自己的,我想这将是一个有用的开始.

If someone could point me to where the shortcuts are coded in the github repo so I could "hack" my own, I suppose this would be a useful start.

https://github.com/rstudio/rstudio

推荐答案

刚注意到 RStudio v0.98.1079 有 shift+command+M 映射为 %>% 运算符.您可以通过单击帮助"选项卡或输入 alt+shift+K 来查看 RStudio 中的其他键盘快捷键.

Just noticed that RStudio v0.98.1079 has shift+command+M mapped for the %>% operator. You can check out the other keyboard shortcuts within RStudio by clicking at the Help tab or by entering alt+shift+K.

这篇关于Rstudio 中的 %&gt;% 键绑定/键盘快捷键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆