Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cursor disappears in Visual Studio 2015

When using Visual Studio 2015 Community Edition my cursor frequently disappears when I perform the Ctrl+. shortcut to resolve missing dependencies. For example, if I am creating a new Entity Framework entity and want to add the [Required] attribute to one of my properties:

  1. Type [Required]. The attribute gets a red squiggly underline.
  2. Click Ctrl+. to bring up the suggested imports
  3. Select the using System.ComponentModel.DataAnnotations option using the arrow keys
  4. Press Enter to select it and import the using statement

Sometimes I can continue coding without any issues. But most of the time my cursor disappears and I have to click back on the code editor to get my cursor back.

It happens to me on several different computers using Windows 7, Windows 8.1, or Windows 10. I've tried resetting my VS2015 configurations to default, but it didn't seem to help. The only other thing I can think of that might be worth mentioning is that I'm use the Dark theme.

Has anyone else experienced this? Is there a setting change so that the editor keeps focus, or a keyboard shortcut to get the cursor back? It isn't the end of the world to use the mouse but I never had to do it in 2013 so it is slightly annoying.

like image 301
Sam Avatar asked Dec 30 '15 20:12

Sam


People also ask

How do I get my cursor back in Visual Studio?

For those on a Mac (running Windows+Visual Studio with either VMWare Fusion or Parallels, for example), press the 0 (zero) key in the Mac keyboard number pad. For me, this translates to the Insert key which changed the fat (overwrite) cursor back to the normal (insert) cursor.

How can I see my cursor in Visual Studio?

It going back to Visual Studio, but cursor is invisible. The same problem. Pressing F12 to "Go to Definition", make the cursor invisible. You can select/higlight the text via keyboard but can't write anything, unless, you click on the editor via mouse to make it visible again.


1 Answers

I ran into the same issue, and found that if I went to my mouse properties and changed the default pointer for Text Select to one with white in it, I didn't lose the pointer in the editor. I don't know if this'll solve your issue, but it helped with mine.

like image 155
Christopher Keslin Avatar answered Nov 05 '22 07:11

Christopher Keslin