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. That was cool (if a little bit unexpected)

That was cool (if a little bit unexpected)

Scheduled Pinned Locked Moved The Lounge
databasequestion
6 Posts 4 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.
  • D Offline
    D Offline
    Dan Neely
    wrote on last edited by
    #1

    I'm not sure if I should be thanking Microsoft or Jetbrains; but I just saw an implementation of the famed DWIM[^] instruction in my editor. I was working with a List<> and needed to access the number of elements in it, and typed myList.Len<tab> to trigger intelligence and complete the property for me. I then did a quick doubletake when I saw myList.Count staring back at me. A bit of fiddling showed that someone put Length in as an alias for Count so that I could go on my mis-remembered way instead of having to hammer the backspace once it became clear I'd guessed wrong about what the property was called this time.:cool: Makes me wonder how many other items are in this features autocorrect list...

    Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging 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 Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

    A R 2 Replies Last reply
    0
    • D Dan Neely

      I'm not sure if I should be thanking Microsoft or Jetbrains; but I just saw an implementation of the famed DWIM[^] instruction in my editor. I was working with a List<> and needed to access the number of elements in it, and typed myList.Len<tab> to trigger intelligence and complete the property for me. I then did a quick doubletake when I saw myList.Count staring back at me. A bit of fiddling showed that someone put Length in as an alias for Count so that I could go on my mis-remembered way instead of having to hammer the backspace once it became clear I'd guessed wrong about what the property was called this time.:cool: Makes me wonder how many other items are in this features autocorrect list...

      Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging 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 Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

      A Offline
      A Offline
      Aless Alessio
      wrote on last edited by
      #2

      Lucky you. On my Vs2015 Update3, Len is still not triggering anything different than the closest "LastIndexOf" :sigh:

      D 1 Reply Last reply
      0
      • A Aless Alessio

        Lucky you. On my Vs2015 Update3, Len is still not triggering anything different than the closest "LastIndexOf" :sigh:

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

        Probably a Resharper thing then. Although since I'm only at VS2015u1 it's possible it is an MS feature that was broken by a newer patch.

        Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging 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 Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

        V 1 Reply Last reply
        0
        • D Dan Neely

          Probably a Resharper thing then. Although since I'm only at VS2015u1 it's possible it is an MS feature that was broken by a newer patch.

          Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging 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 Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

          V Offline
          V Offline
          Vark111
          wrote on last edited by
          #4

          I'm on update 2 (w/ ReSharper) and I see the same behavior. The icon next to (len) in the intellisense window looks like the ReSharper icon for a live template (i.e. the same icon you get if you type in "for"), so I think it's a RS thing.

          1 Reply Last reply
          0
          • D Dan Neely

            I'm not sure if I should be thanking Microsoft or Jetbrains; but I just saw an implementation of the famed DWIM[^] instruction in my editor. I was working with a List<> and needed to access the number of elements in it, and typed myList.Len<tab> to trigger intelligence and complete the property for me. I then did a quick doubletake when I saw myList.Count staring back at me. A bit of fiddling showed that someone put Length in as an alias for Count so that I could go on my mis-remembered way instead of having to hammer the backspace once it became clear I'd guessed wrong about what the property was called this time.:cool: Makes me wonder how many other items are in this features autocorrect list...

            Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging 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 Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

            R Offline
            R Offline
            Ryan Peden
            wrote on last edited by
            #5

            Looks like you can thank JetBrains: The feature you saw is the first item in their 'tips and tricks' list. :-D I don't currently use ReSharper, but I'ma big fan of Jetbrains' tools. When I've used IntelliJ for Java developement in the past, it felt a bit like pair programming with a psychic.

            D 1 Reply Last reply
            0
            • R Ryan Peden

              Looks like you can thank JetBrains: The feature you saw is the first item in their 'tips and tricks' list. :-D I don't currently use ReSharper, but I'ma big fan of Jetbrains' tools. When I've used IntelliJ for Java developement in the past, it felt a bit like pair programming with a psychic.

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

              Ryan Peden wrote:

              Looks like you can thank JetBrains: The feature you saw is the first item in their 'tips and tricks' list. :-D

              Not surprising. The newly added feature list for Resharper is generally where you can expect to see a list of things that will be added to a future version of intellisence about 5 years ahead of the official MS announcement. :rolleyes:

              Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging 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 Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

              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