tags:

views:

103

answers:

3

Hi there:

I am trying to type in a pair of angle brackets in Eclipse, like "<>". However it shows up as a single quotation and a dot, like "'.". I tried a couple of times and found out that the angle bracket is actually located at back-slash's position.

Why is this happening? How can I change it back?

Thanks in advance.

Xi

+2  A: 

... Maybe you have your keyboard set for a different Locale(country)?

Also, you would probably be better asking this on SuperUser

webdestroya
Thanks. It helps. I have already solved the problem.I am asking it here because it only happens in my Java Eclipse --- not even in PHP Eclipse! Weird, isn't it?
Xi
+3  A: 

I think this has to do with an annoying feature of Windows - I've had something similar for a long time in different programs (not just Eclipse).

If you have a non-English version of Windows, you probably have different keyboard layouts installed (for example, I have a Dutch and a US English layout installed by default). There's a certain key combination (Ctrl-Alt, or something like that - I'm not exactly sure what) that switches between keyboard layouts. It's very annoying and it's a really strange feature - as if the keys on someone's keyboard would suddenly change?!

You can go into Control Panel, Keyboard Settings and remove the layouts that you don't want to use. (I removed the Dutch layout so there's only US English left), so that you can't switch to the wrong layout by accident again.

Jesper
That solves my problem. Thanks!
Xi
@Xi Then you should accept this answer by clicking on the check mark next to it.
Jonathan M Davis
A: 

Hit Alt-Shift. If you don't want to spend time removing keyboard layouts like Jesper suggested, just hit Alt-Shift until you get the layout you need. It usually doesn't take more than a couple times. :)

Oleg Ryaboy