vscode-elixir icon indicating copy to clipboard operation
vscode-elixir copied to clipboard

Highlight start of code block when selecting the end, and vice versa

Open sstine opened this issue 8 years ago • 7 comments

It'd be nice if when selecting end in the code block below, def is highlighted, and vice versa. Currently VSCode just highlights other instances of end.

def myfunc do
  # stuff
end

sstine avatar Aug 13 '16 19:08 sstine

worryingly when I searched google for how/if this is possible this issue came up. I'm not sure if this is achievable with the VSCode extensions at the moment but I will look into it

mat-mcloughlin avatar Aug 23 '16 14:08 mat-mcloughlin

I think the Ruby extension does this. I already tried finding the code that does this but got tired.

fahrradflucht avatar Aug 23 '16 14:08 fahrradflucht

It may be a completely separate thing but matching/highlighting in eex templates would be a welcome addition too. Specifically on opening/closing element tags, i.e.

, and opening closing < >. If you switch the language over to the stock html one it does this already. It looks like for eex it is highlighting all instances of a given tag.

plamb avatar Oct 10 '16 15:10 plamb

https://github.com/rubyide/vscode-ruby/blob/master/ruby.js#L11

This is how the ruby plugin does it (see the following lines) I will try to implement this here, if noone else wants to take a look?

timmhirsens avatar Dec 08 '16 07:12 timmhirsens

Did this end up getting updated? @fr1zle

richjdsmith avatar Oct 24 '17 15:10 richjdsmith

@richjdsmith Sadly, no. I tried doing this in #34 but there are many edge cases not covered. Feel free to look into it, though!

timmhirsens avatar Oct 24 '17 17:10 timmhirsens

I can try and take a look at this

TimFung93 avatar Feb 04 '19 19:02 TimFung93