C#C
C#16mo ago
hutonahill

Live Templates: Jetbrains Rider

hey trying to make a live template.

i want to that where is System.Linq.Queryable.Where(), then also apply this to other methods like Select() and Count(). Chat GPT and the Docs talk about setting 'method context' or defining the context its available in, but i cant find where to do this.
i don't appear to understand how this works. the The shortcuts only works if i start with where and doesn't wait for a char within the Where(). the actual result of this is Where(char => )

the goal here is to type something like otherstuff.Where(a|) then hit tab and get otherstuff.Where(a => |). ideally i could read the text of otherstuff and if its a DbSet<T> than i just type otherDbSet.Where| hit tab and get otherDbSet.Where(o => |) where we determine the char o as it is the first letter of otherDbSet
image.png
Was this page helpful?