问题
I have an odd behavior with Visual Studio 2010 editor. Whenever I do a search (ctrl-F) or do a paste using a clipboard manager like ClipX or Ditto, the cursor is missing. I have to click with the mouse inside the editor to get the cursor.
When I do these actions with Visual Studio running in safe mode, they work fine. So I thought it might be an extension or add-on causing this. I disabled all the add-ons and extensions and ran VS with /resetsettings and /setup but I still get the issue.
Any ideas on what might be going on?
UPDATE:
Switched to VS2012 which doesn't have this issue. VS2012 has the same extensions
回答1:
Your problem can be solved with different ways (depends on the cause). Try the following:
- (Windows settings issue) go to Control Panel, Ease of Access Center, Make the computer easier to see, and under Make things on the screen easier to see set the thickness of the blinking cursor to 1
- (Visual Studio issue) reset all settings in VS by Tools->Import and Export Settings->Reset All Settings. Restart VS and check. If problem is still actual then start devenv /safemode in VS2010 command prompt to avoid extension loaded and check the bahavior. This should help.
BTW This issue occurred quite often during the RC period of VS.
UPD Try removing C:\Users\%UserName%\AppData\Local\Microsoft\VisualStudio\10.0\Extensions this.
回答2:
After following @arttronics' advice, I have some suggestions that may help (or of course, may not!) based on a bit of Google research.
I'd try these in the following order:
- Reduce the hardware acceleration in your video driver's settings.
- Disable WPF hardware acceleration (This is meant for the purpose of debugging your WPF-based application, but have seen discussion threads suggesting that disabling this will correct problems similar to what you've described)
- Enable single-click URL navigation as per Fernando Figueiredo's answer.
Hope something here helps.
来源:https://stackoverflow.com/questions/13655668/missing-cursor-in-visual-studio-editor-after-doing-a-search-or-using-a-clipboard