Bracket before `else` doesn't highlight block line above it

The line below the closing `if` bracket on an `else` line highlights the trace line below the bracket, but not above it, so if I'm trying to trace the preceding `if` statement, it's difficult unless I put my cursor on the line and scroll up... whereas below the bracket, it's easy to see the highlighted line until it ends or stops being highlighted.

Putting the cursor on either side of the bracket doesn't matter... though I'd imagine putting it on the left side would highlight the upper line and putting it on the right would highlight the lower line (though I'd prefer it just do both).

0
1 comment
Avatar
Permanently deleted user

Hello,

I'd suggest to use another feature - go to Settings/Preferences | Editor | General and enable Highlight on Caret Movement > Highlight current scope option.

It will highlight blocks where the caret is placed in gutter.

0

Please sign in to leave a comment.