Home > database >  coloring parentheses and curly brackets in Rstudio
coloring parentheses and curly brackets in Rstudio

Time:07-02

I looked in the tool options of Rstudio and couldn't find a way to color either the curly brackets or the selection of curly brackets. With the dark theme that I am using is really hard to see where my closing or opening curly brackets or parentheses are located on a long script. Is there a way to color or make these blink when selected? See a pic below:

enter image description here

CodePudding user response:

I use a custom rstudio theme called "atom One Dark". You can download it from image.png

If you're on macOS, your default themes are stored in /Applications/RStudio.app/Contents/Resources/resources/themes; you can also copy one of these files and make the same changes to the '.ace_bracket' parameter e.g. copy vibrant_ink.rstheme to updated_vibrant_ink.rstheme, edit the '.ace_bracket' colors in "updated_vibrant_ink.rstheme" and then add the theme as above (Tools>Global Options>Appearance>Add).

If you're on Windows, apparently the default themes are stored at C:\Users\<your user account>\Documents\.R\rstudio\themes (re this article).

  • Related