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