Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Intellisense gets better and better every time I use it.

Intellisense gets better and better every time I use it.

Scheduled Pinned Locked Moved The Lounge
csharpdatabasevisual-studiocomjson
10 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • OriginalGriffO Offline
    OriginalGriffO Offline
    OriginalGriff
    wrote on last edited by
    #1

    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 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

    Richard Andrew x64R C pkfoxP 3 Replies Last reply
    0
    • OriginalGriffO OriginalGriff

      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!

      Richard Andrew x64R Offline
      Richard Andrew x64R Offline
      Richard Andrew x64
      wrote on last edited by
      #2

      Agreed! I love the new completion capabilities.

      The difficult we do right away... ...the impossible takes slightly longer.

      1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        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!

        C Offline
        C Offline
        Calin Negru
        wrote on last edited by
        #3

        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.

        OriginalGriffO J H 3 Replies Last reply
        0
        • C Calin Negru

          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.

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #4

          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 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

          C 1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            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!

            C Offline
            C Offline
            Calin Negru
            wrote on last edited by
            #5

            I get it. A few days of coding is not enough to get a sense of what intelli sense can and can’t do.

            1 Reply Last reply
            0
            • OriginalGriffO OriginalGriff

              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!

              pkfoxP Offline
              pkfoxP Offline
              pkfox
              wrote on last edited by
              #6

              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

              OriginalGriffO 1 Reply Last reply
              0
              • pkfoxP pkfox

                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

                OriginalGriffO Offline
                OriginalGriffO Offline
                OriginalGriff
                wrote on last edited by
                #7

                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!

                "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

                1 Reply Last reply
                0
                • C Calin Negru

                  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.

                  J Offline
                  J Offline
                  jschell
                  wrote on last edited by
                  #8

                  Perhaps it is tracking user code writing patterns?

                  C 1 Reply Last reply
                  0
                  • J jschell

                    Perhaps it is tracking user code writing patterns?

                    C Offline
                    C Offline
                    Calin Negru
                    wrote on last edited by
                    #9

                    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.

                    1 Reply Last reply
                    0
                    • C Calin Negru

                      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.

                      H Offline
                      H Offline
                      haughtonomous
                      wrote on last edited by
                      #10

                      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.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups