Rainbow Brackets / Rainbow Parentheses for IntelliJ based IDEs.
IntelliJ IDEA, PhpStorm, WebStorm, PyCharm, RubyMine, AppCode, CLion, Gogland, DataGrip, Rider, MPS, Android Studio
Java, Scala, Clojure, Kotlin, Python, Haskell, Agda, Rust, JavaScript, TypeScript, Erlang, Go, Groovy, Ruby, Elixir, ObjectiveC, PHP, HTML, XML, SQL, Apex language ...
- with Java
- with Scala
- with Clojure
- with Kotlin
- with HTML/XML
- Scope highlighting
Ctrl + Button3(Windows & Linux) or Meta+ Button3(Mac):
Alt + Button3:
- looking forward to your screenshots(PR welcome!)
For Windows - File > Settings > Plugins > Browse repositories... > Search for "Rainbow Brackets" > Install Plugin > Restart IntelliJ IDEA
For Mac - IntelliJ IDEA > Preferences > Plugins > Browse repositories... > Search for "Rainbow Brackets" > Install Plugin > Restart IntelliJ IDEA
Settings/Preferences > Editor > Color Scheme > Rainbow Brackets:
To enable rainbow brackets for HTML inside js code like this:
var html = '<div><div><div>Hello</div></div></div>';
This plugin will automatically override color scheme propertie "HTML_CODE" cause our rainbow color been covered by intellij built-in functionality.
You still could set <option name="rainbowifyHTMLInsideJS" value="false" />
in config file to disable just like Config brackets colors.
To enable rainbow brackets for multiple level lambda Kotlin code like this:
event.throwable?.let { throwable ->
IdeErrorsDialog.findPluginId(throwable)?.let { pluginId ->
PluginManager.getPlugin(pluginId)?.let { ideaPluginDescriptor ->
if (!ideaPluginDescriptor.isBundled) {
bean.pluginName = ideaPluginDescriptor.name
bean.pluginVersion = ideaPluginDescriptor.version
}
}
}
}
This plugin will automatically override color scheme propertie "KOTLIN_FUNCTION_LITERAL_BRACES_AND_ARROW" cause our rainbow color been covered by kotlin plugin built-in functionality.
You still could set <option name="rainbowifyKotlinFunctionLiteralBracesAndArrow" value="false" />
in config file to disable just like Config brackets colors.
gradle test
gradle runIde
gradle buildPlugin
Intellij-rainbow-brackets is heavily inspired by Rainbow Brackets for Visual Studio Code