idea-return-highlighter icon indicating copy to clipboard operation
idea-return-highlighter copied to clipboard

Language support: C#

Open sor opened this issue 5 years ago • 8 comments

Hey, I really like the idea of your plugin and thought it would be nice to have for C# (Rider). Additionally you could highlight break, continue, throw and goto statements, then all of the possibly hidden control flow statements would be nicely visible.

sor avatar Dec 19 '19 16:12 sor

I think we should stop at return and, maybe, goto for the languages that support it.

I'd like to avoid cluttering the gutter icon space. Anyway I'll certainly look into C++ during the weekend.

Can you split the two languages in two issues?

lppedd avatar Dec 19 '19 17:12 lppedd

The solution with the gutter is only one possibility, but its the easiest for you since you already did this. I was thinking to only have a different highlighting for these control flow statements, but Rider does only have one color for all keywords. I would be fine with them being able to have a different color. The gutter would be cluttered ^^

sor avatar Dec 19 '19 17:12 sor

@sor So basically what I could do is

return    > gutter icon
throw     > gutter icon (new color or shape)
goto      > different foreground / background
break     > different foreground / background
continue  > different foreground / background

Is it ok? I plan on implementing return only for now, I will have more time for the other in the beginning of January.

lppedd avatar Dec 19 '19 17:12 lppedd

That's super nice, thanks! For the far future it would be nice to be able to configure to either use colors and/or an icon.

sor avatar Dec 19 '19 18:12 sor

@sor so do you prefer I go C# first?

lppedd avatar Dec 19 '19 18:12 lppedd

Yeah, C++ was only nice-to-have for me since I'm coding quite a lot of C# atm.

Edoardo Luppi [email protected] schrieb am Do., 19. Dez. 2019, 19:53:

@sor https://github.com/sor so do you prefer I go C# first?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lppedd/idea-return-highlighter/issues/12?email_source=notifications&email_token=AAE24BGBEWLK4RVQ4Q4CUR3QZO7LFA5CNFSM4J5K4OR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHKSHDA#issuecomment-567616396, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE24BFA7X7SG26GACKSCIDQZO7LFANCNFSM4J5K4ORQ .

sor avatar Dec 20 '19 16:12 sor

@sor so do you prefer I go C# first?

@lppedd, Thanks in advance for C#!

rodion-m avatar Dec 20 '19 21:12 rodion-m

I was studying how to do this.
It seems there is no straightforward way, as C# is not available as a plugin.
I'll have to download Rider and check where the PSI elements are stored.

lppedd avatar Dec 20 '19 22:12 lppedd