You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's debatable, if you put cursor at "**/*.txt" you expect it to mark it's parent indent which is "todohighlight.include", and in this case you are marking "todohighlight.include" who's parent is whatever is at the top level, so it work correctly.
One could argue that if selected child node has nodes it's children indent should be selected instead.
I agree that it is debatable... In my point of view if the cursor is after the block start it should move the highlighted guide to the next one. On the other hand, if the cursor is before, I agree with you Henry Jupak (@Jupakabra)
function foo (cb) { // this scope gets highlighted
| // placing cursor on if-statement on the below line will highlight the tab for the function-scope; expected the if-scope.
| if (this.bar) { // < --- this tab-line *should* be highlighted
| cb()
| }
}
I'm having trouble getting your plugin to work.. does it only work with certain langauges?
Please, don't mix cases. This is VSCode repo, not Bracket Pair.
If you have a problem with CoenraadS plugin, open ticket in his repository
Keeping tickets clean is good for all of us ❤️
I was going to perhaps take a stab at this, but is this an acceptable change? If so, can this be marked with help-wanted or bug?
I hope it is possible/acceptable and VS Team will implement that.
The Bracket Pair plugin is not a perfect solution because:
it does not recognize semantics in tags (html div, etc.)
it has a lot of problems with Extension causes high cpu load
This, in combination with #58713, provides for some unintuitive code navigation.
FYI, for anyone looking to solve this issue with Bracket Pair Colorizer without getting all of the distracting colors shown in the screenshots, the following settings work well:
{
// Disable distracting bracket pair colors (prefer styling of Subtle Bracket matching pairs)"bracket-pair-colorizer-2.colors": [],
// Customizes indent guide and scope line. Modify style to fit your theme. This works well with// Material Theme."bracket-pair-colorizer-2.scopeLineCSS": [
"borderStyle : solid",
"borderWidth : 1px",
"borderColor : #606d75",
"opacity: 1"
],
// // Set to false if wanting to remove the horizontal scope line that connects to the active indent// // guide.// "bracket-pair-colorizer-2.showHorizontalScopeLine": false,// Turn off built-in active indent guides since they aren't semantic (parent scope gets// highlighted in some scenarios)."editor.highlightActiveIndentGuide": false,
}
I also think the current functionally in vs code is unacceptable especially since there seems to be no fix for html ATM which is what I need it for. Please add this feature, this is a deal breaker for many people.
There's over 5000 open issues in this repo. It's not helpful to keep saying the feature is crucial for your particular workflow. Just add your 👍 on the parent comment, that is something the team can search on too.
So if you came here to say "me too", please refrain from doing so, it is counterproductive.
Yep! This is 90% fixed now with this PR: #77762 This bug still isn't closed, because the PR doesn't actually do semantic detection (it's just based on the indentation of the above and below lines) so there will still be edge cases where it doesn't work, but for the vast majority of cases and codebases, it will work just fine. See the PR for details about what cases it won't work in.
Activity
Jupakabra commentedon May 7, 2018
It's debatable, if you put cursor at
"**/*.txt"you expect it to mark it's parent indent which is"todohighlight.include", and in this case you are marking"todohighlight.include"who's parent is whatever is at the top level, so it work correctly.One could argue that if selected child node has nodes it's children indent should be selected instead.
augustocdias commentedon May 7, 2018
I agree that it is debatable... In my point of view if the cursor is after the block start it should move the highlighted guide to the next one. On the other hand, if the cursor is before, I agree with you Henry Jupak (@Jupakabra)
[-]Highlighted ident guide error?[/-][+]Highlight the next line's indent guide in this case[/+][-]Highlight the next line's indent guide in this case[/-][+]Indent guide highlighting is not semantic[/+]alexdima commentedon May 8, 2018
Another example from Tresky (@Tresky) in #49384
Sample Code
Screenshot
Tresky commentedon May 8, 2018
alexandrudima Thank you for combining these together.
29 remaining items
kanlukasz commentedon Jul 16, 2019
Please, don't mix cases. This is VSCode repo, not Bracket Pair.
If you have a problem with CoenraadS plugin, open ticket in his repository
Keeping tickets clean is good for all of us ❤️
I hope it is possible/acceptable and VS Team will implement that.
The Bracket Pair plugin is not a perfect solution because:
Extension causes high cpu loadAnother screen from N++

jabacchetta commentedon Sep 10, 2019
This, in combination with #58713, provides for some unintuitive code navigation.
FYI, for anyone looking to solve this issue with Bracket Pair Colorizer without getting all of the distracting colors shown in the screenshots, the following settings work well:
{ // Disable distracting bracket pair colors (prefer styling of Subtle Bracket matching pairs) "bracket-pair-colorizer-2.colors": [], // Customizes indent guide and scope line. Modify style to fit your theme. This works well with // Material Theme. "bracket-pair-colorizer-2.scopeLineCSS": [ "borderStyle : solid", "borderWidth : 1px", "borderColor : #606d75", "opacity: 1" ], // // Set to false if wanting to remove the horizontal scope line that connects to the active indent // // guide. // "bracket-pair-colorizer-2.showHorizontalScopeLine": false, // Turn off built-in active indent guides since they aren't semantic (parent scope gets // highlighted in some scenarios). "editor.highlightActiveIndentGuide": false, }MatteCrystal commentedon Sep 15, 2019
I also think the current functionally in vs code is unacceptable especially since there seems to be no fix for html ATM which is what I need it for. Please add this feature, this is a deal breaker for many people.
wmertens commentedon Sep 30, 2019
There's over 5000 open issues in this repo. It's not helpful to keep saying the feature is crucial for your particular workflow. Just add your 👍 on the parent comment, that is something the team can search on too.
So if you came here to say "me too", please refrain from doing so, it is counterproductive.
LadyCailin commentedon Sep 30, 2019
I completed a pull request 2 months ago that mostly fixed this. Can I get some feedback on that?
reneolivo commentedon Dec 13, 2019
I really hate this! I hope there was some way to configure it. Leaving a comment in hopes that this is fixed.
kanlukasz commentedon Mar 16, 2020
Wow. Did I miss something, or the VS Team did something with this?
At the moment I tested it and it looks as it working as we expect (more or less)
quicksnap commentedon Mar 16, 2020
Woah! What?! You're right kanlukasz it's fixed now!
LadyCailin commentedon Mar 16, 2020
Yep! This is 90% fixed now with this PR: #77762 This bug still isn't closed, because the PR doesn't actually do semantic detection (it's just based on the indentation of the above and below lines) so there will still be edge cases where it doesn't work, but for the vast majority of cases and codebases, it will work just fine. See the PR for details about what cases it won't work in.
mrjones2014 commentedon Mar 18, 2020
LadyCailin I've been watching this issue for almost 2 years. you are my hero!
hediet commentedon Oct 15, 2021
The issue shown in the screenshot has been fixed for indentation guides.
For the remaining cases, we now have "Bracket Pair Guides", which are exact:
In contrast to indentation guides, bracket pair guides use bracket pairs as ground truth (independend of any indentation).