C
C#3mo 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
JenyaRostov3mo ago
you probably would get an answer faster in jetbrains discord
hutoanhill
hutoanhillOP3mo 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
JenyaRostov3mo ago
you mean like those?
No description
hutoanhill
hutoanhillOP3mo ago
yep
JenyaRostov
JenyaRostov3mo ago
i had the same question before those are built-in and you can't add those
hutoanhill
hutoanhillOP3mo 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
JenyaRostov3mo ago
by that i mean postfix templates after text
hutoanhill
hutoanhillOP3mo ago
wdym by postfix?
JenyaRostov
JenyaRostov3mo ago
like when you type somethingSomething. adding templates to use after that "." is not possible for example
hutoanhill
hutoanhillOP3mo ago
not sure if that means what i want isn't possible....
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX3mo 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