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
12 Replies
you probably would get an answer faster in jetbrains discord
ive got this question there to, but ive had zero luck getting questions answered from there. if i get a solution i will post it here and close the ticket and vice versa, but i will be suprised if i get one.
you mean like those?
yep
i had the same question before
those are built-in and you can't add those
what i have now does create one of those, but only when i start typing where on a new line
i literly added one
it doesent do what i want
but it does somthing
by that i mean postfix templates after text
wdym by postfix?
like when you type
somethingSomething.
adding templates to use after that "." is not possible for example
not sure if that means what i want isn't possible....
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
If you have no further questions, please use /close to mark the forum thread as answered