Any way to change colors in Rstudio to something other than default options?

后端 未结 6 437
隐瞒了意图╮
隐瞒了意图╮ 2021-01-30 11:46

Is there anyway to change the color schemes for Rstudio? It comes with 6 or 7 default, pre-packaged

6条回答
  •  闹比i
    闹比i (楼主)
    2021-01-30 12:11

    For skan & others, useful intel can be had in the links posted elsewhere in the thread; on linux I found (backing up & then) opening your nearest-favourite theme in /usr/lib/rstudio/resources/themes/ as admin and editing colours to suit worked great. Chaos theme, for example, lacks the highlighting element whereby selecting a group of characters will highlight other instances of those in the file (e.g. an object). Textmate theme has this so I copied the block & changed the colour accordingly. If anyone's interested, at line55,

    .ace_marker-layer .ace_selected-word {
      background: #141414;
      border: 1px solid #FF0000;
    }
    

    If you make a backup of your file (in linux, /usr/lib/rstudio/resources/themes/chaos.rstheme), RStudio may magically switch to the backup, meaning any changes you make don't get applied. Evidently it doesn't populate the themes list based on filenames in the folder.

    Also, colours given as #123 will accept #123456 HEX. I'm not sure what the #123 format is.

提交回复
热议问题