-
Notifications
You must be signed in to change notification settings - Fork 29.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Colored line scopes #131001
Comments
Also see #130379 for a related feature. |
I will include this screenshot also, as it shows more 'smart' behavior that would be nice to have. This is a more general smart indent line feature, and not actually related to the coloring though. Just putting it out there. I believe it is one of the reasons my extension so popular. I even got emails from teachers about how much it helped their students. |
Any plans to also add the "consecutive/independent color mode" and "force unique opening color" settings? |
@Stanzilla please open a separate issue for these two features! |
Any plans to also add the "show Brackets In Ruler" settings? it's really usefull when brackets are so long. we can see first/end of bracket in ruller with specified color in lef/middle/right of ruler. |
@byehack please file an issue request! |
Maybe this feature could even be implemented in an extension if some version of #131062 (comment) lands: Also, I think it might make sense to only show these colored line scopes when the distance of opening/closing bracket is less than 500 lines apart (it is very cheap to compute the distance). For a performant implementation that spans thousands of lines, you should not walk all lines in between on every cursor move operation. In this case, the tree data structure needs to be extended so that you can cheaply compute the smallest indentation in logarithmic time. |
@hediet is this feature separate from the |
If implemented, this feature could be enabled independently, yes. |
I personally can't live without this feature after the years I've been using it with your extension. Like @JustinGrote said, it is the only thing preventing me from moving to VS Code's native version. Thanks for all the work you've done on your extension and helping getting it into native @CoenraadS and the VSCode team. |
I upgraded to the native VSCode bracket pair colorization and when i realized that this feature isn't implemented i turned it off and reinstalled BPC2, I think this feature is one of the best and most helpful features in the extension ecosystem. |
Implemented in #133509. We will iterate on the feature we implemented and differs a little bit from the requested feature. Mainly, scope lines for all bracket pairs are shown, not only for the active one. |
@hediet Just looking at the screenshots in that PR I don't personally feel this feature has been implemented and this issue should remain open to track it. At the very least follow up issues should be created so it doesn't get forgotten.
This is not how BPC2 worked and I could easily see people thinking this adds too much visual clutter distracting from the point of highlighting the current block/bracket pair you're in. To @CoenraadS's comment "I even got emails from teachers about how much it helped their students". If every block's guide is shown then this can't happen as easily
However more importantly, this is the biggest benefit of this feature and the whole reason to use it in my opinion. Just look at the difference it makes in @JustinGrote's comment #131001 (comment) or the main screenshots shared by @CoenraadS #131001 (comment). I already use |
@hediet agree with jjspace on both the visual clutter and the horizontal lines, I'm ok with an additive setting as a future iteration, but this is not sufficient to move me from BPC2 (your hard work and efforts are appreciated however!) |
@silkfire as they said they are going to iterate on this, it may just be baby steps and they have to carefully consider performance and stability. I'm willing to give them the benefit of the doubt, they've been clear this is just a first iteration. |
@JustinGrote thanks for creating the follow-up issue! I fully understand that the implemented feature currently is a strict subset of the BP2 functionality. If we would have directly implemented the full BP2 feature of colored line scopes, we would not have learnt if/why a simpler version of the feature isn't enough. |
Now that bracket pair colorization landed, we can do more advanced stuff like this:
(Idea by @CoenraadS)
The text was updated successfully, but these errors were encountered: