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