Intellisense gets better and better every time I use it.
-
I added a "Find" method to a C# class to locate the right instance when the GUID was retrieved from the DB (to be used in the constructor of a different class with a foreign key relationship). I got this far:
internal static CharacterClass Find(Guid guid) { return All.Fi }
And it filled in the rest:
internal static CharacterClass Find(Guid guid) { return All.FirstOrDefault(cc => cc.ID == guid); }
That's what I was going to type. Exactly what I was going to type ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
-
I added a "Find" method to a C# class to locate the right instance when the GUID was retrieved from the DB (to be used in the constructor of a different class with a foreign key relationship). I got this far:
internal static CharacterClass Find(Guid guid) { return All.Fi }
And it filled in the rest:
internal static CharacterClass Find(Guid guid) { return All.FirstOrDefault(cc => cc.ID == guid); }
That's what I was going to type. Exactly what I was going to type ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
Agreed! I love the new completion capabilities.
The difficult we do right away... ...the impossible takes slightly longer.
-
I added a "Find" method to a C# class to locate the right instance when the GUID was retrieved from the DB (to be used in the constructor of a different class with a foreign key relationship). I got this far:
internal static CharacterClass Find(Guid guid) { return All.Fi }
And it filled in the rest:
internal static CharacterClass Find(Guid guid) { return All.FirstOrDefault(cc => cc.ID == guid); }
That's what I was going to type. Exactly what I was going to type ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
How can that be? You should be getting the same intelli sense experience every VS sesion unless you’re putting side by side different VS versions.
-
How can that be? You should be getting the same intelli sense experience every VS sesion unless you’re putting side by side different VS versions.
Because I write different code each time? And when I do, it works out what I am trying to do, and suggests it. Sometimes, it's damn clever!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
-
Because I write different code each time? And when I do, it works out what I am trying to do, and suggests it. Sometimes, it's damn clever!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
I get it. A few days of coding is not enough to get a sense of what intelli sense can and can’t do.
-
I added a "Find" method to a C# class to locate the right instance when the GUID was retrieved from the DB (to be used in the constructor of a different class with a foreign key relationship). I got this far:
internal static CharacterClass Find(Guid guid) { return All.Fi }
And it filled in the rest:
internal static CharacterClass Find(Guid guid) { return All.FirstOrDefault(cc => cc.ID == guid); }
That's what I was going to type. Exactly what I was going to type ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
-
Is this VS 2023 Griff ?
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
Nope, VS 2022 (V17.64)
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
-
How can that be? You should be getting the same intelli sense experience every VS sesion unless you’re putting side by side different VS versions.
-
In the same project? Maybe. Once the base of the pyramid is set, the higher you get the easier it gets to guess what the top should look like.
-
How can that be? You should be getting the same intelli sense experience every VS sesion unless you’re putting side by side different VS versions.
Possibly VS is maintaining a history of your code completion, so on starting down a code line you have previously completed with the aid of cc, it infers from that history that you probably want to write something similar? Sort of like a word-wheel, where as you type possible matches to your part-typed word are displayed.