在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:intellij-rainbow-brackets开源软件地址:https://gitee.com/thoughtworks/intellij-rainbow-brackets开源软件介绍:Intellij rainbow bracketsRainbow Brackets / Rainbow Parentheses for IntelliJ based IDEs.
CompatibilityIntelliJ IDEA, PhpStorm, WebStorm, PyCharm, RubyMine, AppCode, CLion, Gogland, DataGrip, Rider, MPS, Android Studio Supported languagesJava, Scala, Clojure, Kotlin, Python, Haskell, Agda, Rust, JavaScript, TypeScript, Erlang, Go, Groovy, Ruby, Elixir, ObjectiveC, PHP, HTML, XML, SQL, Apex language, C#, Dart, ... Author's choiceRainbow Brackets + Material Theme UI(Oceanic theme) + Nyan Progress Bar + Fira Code (Font) Sponsored ByThis plugin is being sponsored by Codota and CodeStream. Code faster and smarter using code completions learned from millions of programs directly in IntelliJ, Android Studio or Eclipse. Get Codota Discussing code is now as easy as highlighting a block and typing a comment right from your IDE. Take the pain out of code reviews and improve code quality. Try it free! Development powered by JetBrains. Whichever technologies you use, there's a JetBrains tool to match. Screenshots
The highlight effects will not remove after release the shortcuts, but press Ctrl + Button3(Windows & Linux) or Meta+ Button3(Mac): NOTE: Button3 means "Secondary Click (click or tap with two fingers)" on Mac os, "Right click" for Windows or Linux. Alt + Button3: NOTE: Button3 means "Secondary Click (click or tap with two fingers)" on Mac os, "Right click" for Windows or Linux.
InstallFor Windows & Linux - File > Settings > Plugins > Marketplace > Search for "Rainbow Brackets" > Install Plugin > Restart IntelliJ IDEA For Mac - IntelliJ IDEA > Preferences > Plugins > Marketplace > Search for "Rainbow Brackets" > Install Plugin > Restart IntelliJ IDEA Install snapshot buildYou can download the latest snapshot build from here, just click in the latest build and click the 'Artifacts' tab.(You must logged in via github) Customize colorsSettings/Preferences > Editor > Color Scheme > Rainbow Brackets: Use color generatorI didn't like the build-in colors, I want some new color but does want to try out and pick colors. Please use color generator. Settings/Preferences > Other Settings > Rainbow Brackets > Use color generator If you turn on this option, we will auto generate some colors for you. If you need more control, you can decide the options of color generator by edit the config file, The value of the option
Please make sure the value of the option <application> <component name="RainbowSettings"> <option name="useColorGenerator" value="true" /> <option name="customColorGeneratorOption" value="{"luminosity": "light","hue": "blue"}"/> </component></application> Want to config the number of colors?Settings/Preferences > Other Settings > Rainbow Brackets > NOTE: For default and darcula color scheme( Please follow the official guide:
Config file pathIf you want to customize the advanced configuration, you could edit the config file then restart your IDE.Config file path in In MAC OS env maybe like If you are using the ToolBox, then it will be like In Linux env maybe like In Windows env maybe like HTML code in jsTo 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 property "HTML_CODE" cause our rainbow color been covered by intellij built-in functionality.You still could set Kotlin function literal braces and arrowTo 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 property "KOTLIN_FUNCTION_LITERAL_BRACES_AND_ARROW" cause our rainbow color is being covered by kotlin plugin built-in functionality.You still could set Disable rainbow brackets for specific languagesIf you want to disable rainbow brackets for javascript languages and java languages, you could set <application> <component name="RainbowSettings"> <option name="languageBlacklist"> <array> <option value="java" /> <option value="javascript" /> </array> </option> </component></application> NOTE: You can use name of language or extension of file name(The names should be lowercase). ContributeNOTE: To view the PSI tree and explore the internal structure of source code, you need to set up your IDE follow this.For the Rider IDE, please follow: this
Support UsYou can support us by the following actions:
BackersThank you to all our backers! ❤️ [Become a backer] SponsorsSupport this project by becoming a sponsor! |
请发表评论