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. Find My Keyboard Caret

Find My Keyboard Caret

Scheduled Pinned Locked Moved The Lounge
helpcsharpvisual-studio
19 Posts 14 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.
  • Mike HankeyM Mike Hankey

    I have it!

    I don't think before I open my mouth, I like to be as surprised a everyone else. PartsBin an Electronics Part Organizer - Release Version 1.1.0 JaxCoder.com Latest Article: SimpleWizardUpdate

    R Offline
    R Offline
    raddevus
    wrote on last edited by
    #7

    I wonder if something I noticed in recent versions of Visual Studio Code is related. Here's the thing I've recently noticed: Focus seems to be set to the File tab in VSC. Here's what I mean: When the app starts and when I choose a file in the File tab (generally on the left) then the focus seems to stay there. That means when I subsequently click CTRL-F thinking I'm going to do a search inside the file VSC actually activates a search inside the File tab area. That means I have to click again inside the actual file so that focus is there in the editor -- instead of in the File tab area. It has definitely changed in recent versions and it has driven me a bit crazy at times. Normally when you choose a file you expect the focus (and cursor) to bounce into the editor automatically but it doesn't seem to do that now. Since the I-bar cursor is a system-wide singleton resource (there is only one I-bar cursor ever shown on Windows system at any time) I'm guessing that the focus possibly leaves the editor window -- or hasn't really gotten there or something.

    Mike HankeyM 1 Reply Last reply
    0
    • R raddevus

      I wonder if something I noticed in recent versions of Visual Studio Code is related. Here's the thing I've recently noticed: Focus seems to be set to the File tab in VSC. Here's what I mean: When the app starts and when I choose a file in the File tab (generally on the left) then the focus seems to stay there. That means when I subsequently click CTRL-F thinking I'm going to do a search inside the file VSC actually activates a search inside the File tab area. That means I have to click again inside the actual file so that focus is there in the editor -- instead of in the File tab area. It has definitely changed in recent versions and it has driven me a bit crazy at times. Normally when you choose a file you expect the focus (and cursor) to bounce into the editor automatically but it doesn't seem to do that now. Since the I-bar cursor is a system-wide singleton resource (there is only one I-bar cursor ever shown on Windows system at any time) I'm guessing that the focus possibly leaves the editor window -- or hasn't really gotten there or something.

      Mike HankeyM Offline
      Mike HankeyM Offline
      Mike Hankey
      wrote on last edited by
      #8

      Yeah I've notice a lag occasionally, among many other absolutely frustrating bugs. You would thing that in the 20+? years that VS has been in the wild they would have things pretty well worked out.

      I don't think before I open my mouth, I like to be as surprised a everyone else. PartsBin an Electronics Part Organizer - Release Version 1.1.0 JaxCoder.com Latest Article: SimpleWizardUpdate

      L 1 Reply Last reply
      0
      • Mike HankeyM Mike Hankey

        Yeah I've notice a lag occasionally, among many other absolutely frustrating bugs. You would thing that in the 20+? years that VS has been in the wild they would have things pretty well worked out.

        I don't think before I open my mouth, I like to be as surprised a everyone else. PartsBin an Electronics Part Organizer - Release Version 1.1.0 JaxCoder.com Latest Article: SimpleWizardUpdate

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #9

        Mike Hankey wrote:

        they would have things pretty well worked out.

        Of course they do - but to their satisfaction. :laugh:

        1 Reply Last reply
        0
        • B BernardIE5317

          greetings . in Visual Studio on occasion the keyboard caret disappears and i must reach for the mouse to click it back into place . i do not know where it goes but seems to go there upon fast typing . if anyone knows a fix for this i would appreciate being informed of it . kind regards [edit] thank you for your kind assistance . please permit me to elaborate . the problem is upon disappearance of keyboard caret typing has no effect . i assume changing appearance of mouse pointer will not affect solution .

          0 Offline
          0 Offline
          0x01AA
          wrote on last edited by
          #10

          I experience similar things in other IDEs. Is this probably related to Windows rather than the development environment (VS, whatever)? Ok, with MS products like word it does not happen...

          1 Reply Last reply
          0
          • B BernardIE5317

            greetings . in Visual Studio on occasion the keyboard caret disappears and i must reach for the mouse to click it back into place . i do not know where it goes but seems to go there upon fast typing . if anyone knows a fix for this i would appreciate being informed of it . kind regards [edit] thank you for your kind assistance . please permit me to elaborate . the problem is upon disappearance of keyboard caret typing has no effect . i assume changing appearance of mouse pointer will not affect solution .

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #11

            I think it's determinate ... something stealing focus based of some other window on another monitor or something. Except I haven't determined exactly what.

            "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 P 2 Replies Last reply
            0
            • L Lost User

              I think it's determinate ... something stealing focus based of some other window on another monitor or something. Except I haven't determined exactly what.

              "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
              raddevus
              wrote on last edited by
              #12

              Gerry Schmitz wrote:

              something stealing focus based of some other window

              :thumbsup: This lines up with what I had mentioned too[^] -- that the editor window doesn't actually get focus automatically when a file is clicked, as it did in the past.

              1 Reply Last reply
              0
              • OriginalGriffO OriginalGriff

                I found this: How to fix mouse cursor disappearing in Visual Studio & Visual Studio Code – Cameron Dwyer[^] - I don't have the problem, but it may be worth a try. I see no reason why it should affect the caret, but ... that's MS for you! On Win 11, it's moved: open Control Panel and search for "mouse p" then click "change how the mouse pointer looks" to open the properties dialog.

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

                U Offline
                U Offline
                User 13269747
                wrote on last edited by
                #13

                Quote:

                found this: How to fix mouse cursor disappearing in Visual Studio & Visual Studio Code – Cameron Dwyer[^] - I don't have the problem, but it may be worth a try. I see no reason why it should affect the caret, but ... that's MS for you!

                I think that's a different issue - it's not the mouse cursor (i.e. mouse pointer) that is disappearing, it's the keyboard caret (that blinking I-beam or block which indicates where the next keystroke entered will appear). (TBH, for Vim I have it set up to make the pointer disappear when I start typing. I haven't found a few to make this happen on VSCode, though)

                1 Reply Last reply
                0
                • L Lost User

                  I think it's determinate ... something stealing focus based of some other window on another monitor or something. Except I haven't determined exactly what.

                  "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

                  P Offline
                  P Offline
                  Peter Adam
                  wrote on last edited by
                  #14

                  Maybe this tool can help you: [Window Focus Tracker](https://smklancher.github.io/oldprojects/project/id/84/Window\_Focus\_Tracker) I have used a tool with the same name from the now defunct www.adminscope.com, and it helped me to find out that a USB sharing tool grabbed the focus periodically.

                  1 Reply Last reply
                  0
                  • B BernardIE5317

                    greetings . in Visual Studio on occasion the keyboard caret disappears and i must reach for the mouse to click it back into place . i do not know where it goes but seems to go there upon fast typing . if anyone knows a fix for this i would appreciate being informed of it . kind regards [edit] thank you for your kind assistance . please permit me to elaborate . the problem is upon disappearance of keyboard caret typing has no effect . i assume changing appearance of mouse pointer will not affect solution .

                    P Offline
                    P Offline
                    Peter Adam
                    wrote on last edited by
                    #15

                    First thing can be pressing the Local Menu (or Shift + F10) button to see where the focus has gone assuming the now focused item has a local menu.

                    1 Reply Last reply
                    0
                    • B BernardIE5317

                      greetings . in Visual Studio on occasion the keyboard caret disappears and i must reach for the mouse to click it back into place . i do not know where it goes but seems to go there upon fast typing . if anyone knows a fix for this i would appreciate being informed of it . kind regards [edit] thank you for your kind assistance . please permit me to elaborate . the problem is upon disappearance of keyboard caret typing has no effect . i assume changing appearance of mouse pointer will not affect solution .

                      A Offline
                      A Offline
                      Al Gonzalez
                      wrote on last edited by
                      #16

                      I seem to have the issue when typing on my laptop and the touchpad thinks I clicked on something. I don't seem to have the issue when using an external keyboard. Changing the touchpad sensitivity seems to help.

                      G 1 Reply Last reply
                      0
                      • B BernardIE5317

                        greetings . in Visual Studio on occasion the keyboard caret disappears and i must reach for the mouse to click it back into place . i do not know where it goes but seems to go there upon fast typing . if anyone knows a fix for this i would appreciate being informed of it . kind regards [edit] thank you for your kind assistance . please permit me to elaborate . the problem is upon disappearance of keyboard caret typing has no effect . i assume changing appearance of mouse pointer will not affect solution .

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

                        I see some people accusing the editor of this but I know that when I get up to speed what does happen is that I hit the wrong key combination. Not intentionally. And quite often not even because I was doing a shortcut. And that will make the cursor disappear. And since it is not intentional I will have no idea where it is.

                        1 Reply Last reply
                        0
                        • B BernardIE5317

                          greetings . in Visual Studio on occasion the keyboard caret disappears and i must reach for the mouse to click it back into place . i do not know where it goes but seems to go there upon fast typing . if anyone knows a fix for this i would appreciate being informed of it . kind regards [edit] thank you for your kind assistance . please permit me to elaborate . the problem is upon disappearance of keyboard caret typing has no effect . i assume changing appearance of mouse pointer will not affect solution .

                          M Offline
                          M Offline
                          Marc Clifton
                          wrote on last edited by
                          #18

                          I notice that too. As you say, clicking somewhere in the code editor brings back the caret, I've also noticed that a few Esc, Esc, Esc will do the trick usually. I think sometimes VS gets lost. :laugh:

                          Latest Articles:
                          A Lightweight Thread Safe In-Memory Keyed Generic Cache Collection Service A Dynamic Where Implementation for Entity Framework

                          1 Reply Last reply
                          0
                          • A Al Gonzalez

                            I seem to have the issue when typing on my laptop and the touchpad thinks I clicked on something. I don't seem to have the issue when using an external keyboard. Changing the touchpad sensitivity seems to help.

                            G Offline
                            G Offline
                            Gary Wheeler
                            wrote on last edited by
                            #19

                            This is why I disable the touchpad on any laptop I use, and have a mouse in its place. Current touchpads seem to detect touches and motion without physical contact. I suspect static electricity is part of the problem.

                            Software Zen: delete this;

                            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