izhangzhihao / intellij-rainbow-brackets

🌈Rainbow Brackets for IntelliJ based IDEs/Android Studio/HUAWEI DevEco Studio/Fleet
https://plugins.jetbrains.com/plugin/10080-rainbow-brackets
GNU General Public License v3.0
4.47k stars 214 forks source link

New Option: do not colorize multi-line brackets #1061

Closed fatjoem closed 3 years ago

fatjoem commented 3 years ago

This is a request for a new feature.

A new option "Do not colorize multi-line brackets". When checked, only those brackets will be colorized that have a matching bracket on the same line.

Rationale: I can visually identify multi-line brackets by the indentation level already, therefore I don't need them colorized.

open-collective-bot[bot] commented 3 years ago

Hey @fatjoem :wave:,

Thank you for opening an issue. We will get back to you as soon as we can. Also, check out our https://opencollective.com/intellij-rainbow-brackets and consider backing us - every little helps!

PS.: We offer priority support for all backers. Don't forget to add priority label when you start backing us :smile:

izhangzhihao commented 3 years ago

Similar to always colorize multi-line brackets request in #10

izhangzhihao commented 3 years ago

And that is easy as well, sample code to get line number(in DefaultRainbowVisitor we will visit all elements)

document.lineNumber(element.startOffset)

After we know startElement & endElement, we could check the line number and decide whether rainbowify theme or not.

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days