C
C#2mo ago
hutoanhill

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
No description
12 Replies
JenyaRostov
JenyaRostov2mo ago
you probably would get an answer faster in jetbrains discord
hutoanhill
hutoanhill2mo ago
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.
JenyaRostov
JenyaRostov2mo ago
you mean like those?
No description
hutoanhill
hutoanhill2mo ago
yep
JenyaRostov
JenyaRostov2mo ago
i had the same question before those are built-in and you can't add those
hutoanhill
hutoanhill2mo ago
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
JenyaRostov
JenyaRostov2mo ago
by that i mean postfix templates after text
hutoanhill
hutoanhill2mo ago
wdym by postfix?
JenyaRostov
JenyaRostov2mo ago
like when you type somethingSomething. adding templates to use after that "." is not possible for example
hutoanhill
hutoanhill2mo ago
not sure if that means what i want isn't possible....
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX2mo ago
If you have no further questions, please use /close to mark the forum thread as answered
Want results from more Discord servers?
Add your server