4 ms·
There's a code first approach that's pretty common in VS - but it's at the class level - Just write the code inline and click on it and it generates the class/m
by gregors 5y ago
There's a code first approach that's pretty common in VS - but it's at the class level - Just write the code inline and click on it and it generates the class/method stub. So What you are suggesting already exists in standard VS.
The tweaking of allowing possible results in the dropdown is a very very interesting idea - imagine if you let copilot suggest possible methods based on the domain context of the current project.
- ninkendo 5y ago> pretty common in VS - but it's at the class level I haven’t used VS in over 10 years - what does “at the class level” mean? Does it only create stubs for the current class, or any class that’s in the current project? It is interesting that VS has this at all though, as a daily Xcode user I’m jealous. Especially because ObjC and Swift have first class (and popular) ways to add methods to classes you don’t own via extensions… the concept of adding new methods automatically as you type is even more attractive in this ecosystem.
- gregors 5y agoSorry I said "class level" since that is what I remember specifically but I think it's actually everything. Classes, methods, types - also I mis-remembered that this was built in. It's actually resharper which I always used. https://www.jetbrains.com/help/resharper/Code_Generation__Generating_Code_from_Usage.html https://www.jetbrains.com/help/resharper/Code_Generation__Ge... It's been a hot minute since I used it, but it really is exceptional.