改变 RStudio 编辑器主题 [英] Altering RStudio Editor Theme

查看:80
本文介绍了改变 RStudio 编辑器主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试更改 RStudio 编辑器主题,以便我可以设置自己的颜色.我在 Windows 10 上使用 RStudio 版本 0.99.473.

我已经查看了

启用此选项后,函数调用将以不同的方式突出显示(例如,使用 Tomorrow Night Bright):

希望用户可自定义的主题将成为下一个 RStudio 版本的一部分.

I am trying to alter an RStudio Editor Themes so that I can set my own colors. I'm using RStudio version 0.99.473 on Windows 10.

I've reviewed Any way to change colors in Rstudio to something other than default options? which was extremely helpful as well as Editing R Studio them in cashe.css theme file (ACE editor?)

I am trying to identify what the different .ace_ items in the RStudio Editor Theme CSS files (ACE editor code) correspond to. The CSS files are found in /www/rstudio/ within RStudio's install path. An example of the script is found on GitHub for the Tomorrow theme.

In particular, I'm looking to see how to color variables (that I define) differently from functions. For example in x <- rnorm(10,0,10), I'd like x and rnorm to be colored differently. Not sure if that's possible.

解决方案

For what it's worth, the newest versions of RStudio come with a preference that allow you to ensure that function calls are colored differently from variables -- from RStudio v1.0.44, we have the option

  • Highlight R function calls

With this option active, function calls will be highlighted differently (for example, with Tomorrow Night Bright):

Hopefully, user-customizable themes will become part of the next RStudio release.

这篇关于改变 RStudio 编辑器主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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