使插入鼠标光标在深色 VisualStudio 编辑器中可见

我使用一个颜色主题和一个非常暗的背景,这很好,除了 VS2010使用默认的插入点鼠标光标,当鼠标在编辑器窗格,并且光标是黑色 & mdash; 使它几乎不可能看到(字面上不可能,如果背景实际上是黑色,而不是只是非常暗)。

是否有一个直接的方法告诉 VS2010使用轻版本的插入点鼠标光标来代替?

到目前为止我尝试过的事情:

  1. 我安装了 VisualStudio 颜色主题编辑器(它支持对 UI 的其余部分进行主题化,而不仅仅是编辑器) ,希望如果我使用它的一个暗主题,它会自动完成这项工作,但是没有这样的运气。

  2. 我尝试在控制面板中使用不同的鼠标指针,但是即使在某些情况下光标发生了变化(例如,如果我选择了一个“非常大”的方案) ,它仍然是黑色的,因此几乎不可见。

35200 次浏览

My temporary solution is that I'm using a custom "text select" cursor on the system as a whole, which I did by finding one that wasn't too outrageous, and then:

Windows 7 and earlier:

  1. Open Control Panel

  2. Open the Mouse applet

  3. Choose the Pointers tab

  4. Select "Text Select" in the list

  5. Click the Browse button and choose the cursor file

Windows 8:

  1. Click the Start button

  2. Type "mouse click" and wait

  3. Choose "Change mouse click settings" -- this gets you the old Mouse Properties dialog box

  4. Choose the Pointers tab

  5. Select "Text Select" in the list

  6. Click the Browse button and choose the cursor file

Of course, this changes the cursor globally, not just in VS2010, and so I have to use one that works against both light and dark backgrounds (in my case, for now, the one from the DeepSky set on deviantart — only the text select one, not the full set).

Edit: In Windows 10 this setting is in a different place:

  1. Open settings
  2. Click Personalization
  3. Click Themes in the right sidebar
  4. Click Mouse Cursor
  5. Select the Scheme called – Windows Black (system scheme)
  6. Click Apply

Original Answer:

I have the same problem in Visual Studio 2012 (Dark Theme) on a Windows 7 guest system running inside VirtualBox.

I have found a slightly better solution:

Basically, you can globally change the cursor scheme:

  1. Open Control panel
  2. Open Appearance and Personalization
  3. Open Personalization
  4. Finally – click Change mouse pointers.
  5. Select the Scheme called – Windows Black (system scheme)

Makes your cursor nicely visible against the dark background while also working great on light backgrounds. Hope that helps!

Credit: http://www.marcusoft.net/2011/08/my-mouse-pointer-disappeared-in-visual.html

You can change the cursor, so you don't mess up the theme you want in Windows.

I made two I Beams that I made available in a github project:

DarkThemeBeam

Use those, if you want.

I hope that's easier and less invasive on your eyes than changing the larger desired theme you want to work in.

It appears this is still a problem with Visual Studio and Windows 10 in 2021 (I keep updating this every year...). Working off of szalski's and T. J. Crowder's solution, it can be changed in Windows 10:

  1. Start button
  2. Type "mouse"
  3. Choose "Mouse settings" from the results
  4. In the Mouse settings window, click on "Additional mouse options" under "Related settings"
  5. Choose the Pointers tab in the new window that opens up
  6. Select "Text Select" in the list
  7. Click the Browse button and choose the cursor you want

As pointed out by Brad Bamford, "beam_r" is a good choice since it looks very similar to the standard pointer, but also has a white outline. I can finally see the cursor in Visual Studio.

  1. Press the Windows button or click Start Menu
  2. Type : mouse
  3. Select: Mouse settings
  4. From the Mouse settings window select: Additional mouse options, from the window, right top.
  5. Select: Pointers tab from Mouse Properties new window.
  6. Now select: Text Select, under customize level.
  7. Click the Browse button and choose your desire cursor.

It's working!