Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio keyboard generates wrong characters

Tags:

Every now and then my keyboard in Visual Studio starts to behave wrongly. For example Shift + 3 inserts a pound symbol instead of a hash #. Shift + \ inserts a tilde ~ instead of a pipe |. When this happens it only affects the current instance of VS - even if I have multiple VS windows open. Only VS is affected - Notepad and other windows apps are fine. Closing and then reopening the solution I was working on in a new VS 2008 instance resolves the problem.

Does anyone have any idea what key combination I have accidentally pressed to cause this? And how to revert it?

like image 501
evan w Avatar asked Nov 04 '09 03:11

evan w


People also ask

Why does my keyboard type the wrong letters?

Go to Control Panel and select the group Clock, Language, Region. Select language and choose Advanced Settings. Locate the option Override on Default Input Method and select preferred language from the drop-down menu. Set the Override for Windows Display Language to the same language, hit OK, and restart your computer.

Why have the and signs switched on my keyboard How do I get them back?

This has happened because a recent Windows 10 update changed the default language and region settings to US English. To fix it, click the Windows button in the far left hand corner of your taskbar (or tap the Windows key on your keyboard) and start typing “Region & language settings”.


1 Answers

I had a similar problem (on Windows XP), where my keyboard settings would change without me knowing. @ would swap with “, # with /, etc. It turned out that there’s a built-in Windows keyboard shortcut to swap between keyboard layouts, and it’s ALT + Shift! I must have been accidentally pressing these together every so often.

I fixed the problem by going into the Control Panel, selecting 'Regional and Language Options', then moving to the Language tab and clicking the Details button. This shows you a list of all the alternative keyboard layouts that you have available. I just deleted all but the one I wanted, so that I no longer have an alternative layout to swap to.

like image 198
Charles Anderson Avatar answered Oct 17 '22 19:10

Charles Anderson