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. Don't Let Me Catch You Napping

Don't Let Me Catch You Napping

Scheduled Pinned Locked Moved The Lounge
visual-studiocsharp
8 Posts 8 Posters 3 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Visual Studio "intellisense" shows signs of brilliance; then there is: I typed:

    public void Initialize( float minutes ) {

    this.TimeRemaining = TimeSpan.
    }

    I expected:

    this.TimeRemaining = TimeSpan.FromMinutes( minutes );

    I got:

    this.TimeRemaining = TimeSpan.FromSeconds( minutes );

    ... repeatedly.

    "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

    S StarNamer workS R J D 5 Replies Last reply
    0
    • L Lost User

      Visual Studio "intellisense" shows signs of brilliance; then there is: I typed:

      public void Initialize( float minutes ) {

      this.TimeRemaining = TimeSpan.
      }

      I expected:

      this.TimeRemaining = TimeSpan.FromMinutes( minutes );

      I got:

      this.TimeRemaining = TimeSpan.FromSeconds( minutes );

      ... repeatedly.

      "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

      S Offline
      S Offline
      Slacker007
      wrote on last edited by
      #2

      In my copy of VS 2022 when I start typing the word "From" I see a list of all available methods, including FromMinutes. It doesn't auto select FromSeconds. I just arrow down to fromminutes and select that. when I type frommi it automatically shows fromminutes. As far as I can tell this is by design and I don't see anything out of the ordinary. It is what I would expect.

      1 Reply Last reply
      0
      • L Lost User

        Visual Studio "intellisense" shows signs of brilliance; then there is: I typed:

        public void Initialize( float minutes ) {

        this.TimeRemaining = TimeSpan.
        }

        I expected:

        this.TimeRemaining = TimeSpan.FromMinutes( minutes );

        I got:

        this.TimeRemaining = TimeSpan.FromSeconds( minutes );

        ... repeatedly.

        "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

        StarNamer workS Offline
        StarNamer workS Offline
        StarNamer work
        wrote on last edited by
        #3

        I'm using VS2022 17.4.4 and get what you expected:

        this.TimeRemaining = TimeSpan.F_romMinutes(minutes);_

        1 Reply Last reply
        0
        • L Lost User

          Visual Studio "intellisense" shows signs of brilliance; then there is: I typed:

          public void Initialize( float minutes ) {

          this.TimeRemaining = TimeSpan.
          }

          I expected:

          this.TimeRemaining = TimeSpan.FromMinutes( minutes );

          I got:

          this.TimeRemaining = TimeSpan.FromSeconds( minutes );

          ... repeatedly.

          "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

          R Offline
          R Offline
          Ravi Bhavnani
          wrote on last edited by
          #4

          It's probably selecting the TimeSpan method you've used repeatedly recently.  VS's intellisense has tried to become better at predicting what you intend to type.  What happens if you wait a couple of seconds?  Does it then show you all the methods? /ravi

          My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

          1 Reply Last reply
          0
          • L Lost User

            Visual Studio "intellisense" shows signs of brilliance; then there is: I typed:

            public void Initialize( float minutes ) {

            this.TimeRemaining = TimeSpan.
            }

            I expected:

            this.TimeRemaining = TimeSpan.FromMinutes( minutes );

            I got:

            this.TimeRemaining = TimeSpan.FromSeconds( minutes );

            ... repeatedly.

            "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

            J Offline
            J Offline
            Jacquers
            wrote on last edited by
            #5

            It's the minute details that count ;)

            D 1 Reply Last reply
            0
            • J Jacquers

              It's the minute details that count ;)

              D Offline
              D Offline
              DRHuff
              wrote on last edited by
              #6

              When Minutes count Intellisense is only Seconds away!

              If you can't laugh at yourself - ask me and I will do it for you.

              1 Reply Last reply
              0
              • L Lost User

                Visual Studio "intellisense" shows signs of brilliance; then there is: I typed:

                public void Initialize( float minutes ) {

                this.TimeRemaining = TimeSpan.
                }

                I expected:

                this.TimeRemaining = TimeSpan.FromMinutes( minutes );

                I got:

                this.TimeRemaining = TimeSpan.FromSeconds( minutes );

                ... repeatedly.

                "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

                D Offline
                D Offline
                Dan Neely
                wrote on last edited by
                #7

                Stuff like that's why the last time I was doing C#* I actually ended up backing off the more advanced auto-complete features. It might be 90% correct and I might catch 90% of the times it's not as I'm going; but the hundredth time when the problem is that the code I intended to write isn't what VS created ended up causing more than 100x the frustration and taking more than 100x the time trying to debug. * I'm currently doing java, and Android Studio's autocomplete isn't smart enough to footgun me regularly.

                Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius

                J 1 Reply Last reply
                0
                • D Dan Neely

                  Stuff like that's why the last time I was doing C#* I actually ended up backing off the more advanced auto-complete features. It might be 90% correct and I might catch 90% of the times it's not as I'm going; but the hundredth time when the problem is that the code I intended to write isn't what VS created ended up causing more than 100x the frustration and taking more than 100x the time trying to debug. * I'm currently doing java, and Android Studio's autocomplete isn't smart enough to footgun me regularly.

                  Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius

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

                  VS is just plain spookie. I fill in project property parameters and later they just sometimes disappear, change into something else or get ignored.

                  "A little time, a little trouble, your better day" Badfinger

                  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