eclipse keyboard - eclipse

i have encountered a really weirdest bug in eclipse, i would love if someone will help with it.
after a while of coding eclipse simply starts to "mix up" with the letters that are being typed. meaning i press 's' and it displays a different letter 'o' and it happens for other keys as well d becomes an e...and so on.
the weird thing is that out side of eclipse every the keyboard works fine...
and if i restart eclipse every think goes back to normal...till it happens again
i have switched keyboard, reinstalled eclipse... any other ideas?
i work with windows XP, and galileo-php-eclpse
any ideas?

Sometimes you use combination of keys Alt+Shift+SomeOtherLetter. If you don't choose SomeOtherLetter quick enough keyboard will be switched to some other defined in Control Panel -> Regional And Language Options -> Languages -> Details...
After restarting Eclipse will pickup default keyboard language.

Just do a Alt+Shift it will switch among the languages of your windows.
For example in my system I have defined two languages German and English So if I do Alt+shift
It switches to German from English and vise versa.

Related

Arrow key is not working for changing button selection in netbeans

When I try to delete a netbeans project, I get this dialog
I try to use left arrow key to switch focus from the No to the Yes button but it isn't switching. (This will work perfectly for any other windows application on my system)
Is this a normal behaviour for netbeans IDE or is something wrong with mine?
Just tried it with the latest development build, and I can confirm that the arrow keys do not move the focus.
My guess is that it is a Java/Swing/AWT thing, not necessarily a Netbeans thing. Unfortunately I do not have another Java application I can get to at this very moment, so the previous sentence is conjecture on my part.
On the other hand, TAB/SHIFT-TAB cycles through each of the UI items. A little bit farther around the mountain, but not quite as far as reaching for the mouse.

Ctrl button doesn't work in Eclipse

I use Ubuntu (64 bit). I saw some discussions about Ctrl+Space, but in my case I can't do Ctrl+S, Ctrl+V, Ctrl+Z, Ctrl+Shift+F and, probably, something else (all these cases work fine in other programs, so it's not a keyboard problem). It doesn't work, then it does, then it doesn't again. Is there a way to fix that? Thanks in advance.
I am also using 64-bit Ubuntu (12.04 now, 11.10 before that) and Eclipse. I was having similar problems like what you are describing, until I realized that keyboard input method/layout settings actually matter in Ubuntu (while it does not in Mac OS or Windows) while using copy/paste. If you are using two keyboard layouts (e.g. I am using English and Bulgarian), Ctrl-C / Ctrl-V will not work with the non-English layout. If it does no work, double-check the current keyboard layout.
It took me awhile to figure that out - hope it would help you too.
I've solved the same problem rebuilding my workspace CTRL + B on Windows
Similar problem
Looks like there are some key combination which screw up with the focus in the eclipse editor. Try using the shortcut for Focus Return
Shift+Alt+f

Eclipse is printing the wrong characters in the text editor

I have a strange problem with Eclipse (Helios). After a few hours of working some of my keyboard keys start printing different characters in the text editor window.
For example:
SHIFT+2 normally prints " but actually prints #
# normally prints # but actually prints /
It feels like it changes the keyboard locale from UK to US, however I don't change any settings. I am mainly using Eclipse for Android development. No other programs are affected. Any ideas on how to fix, or even what could cause such a problem?
I've hit something similar before: Windows has this evil key-shortcut enabled by default, that changes between installed locales when you press left ALT + left Shift, which is needed in many Eclipse-shortcuts. Check your keyboard -settings (or something alike) under control panel, I don't have a Windows-machine to check where you could disable this with right now.
To switch off the switch between input languages behaviour (as described by #esaj) goto:
Control Panel->Region and Language->Keyboards and Languages->Change keyboards->Advanced Key Settings->Highlight Between input languages->Change Key Sequence->Change to Not Assigned.
Jeez, what a lot of clicks!
Before you change Keyboard setting (as suggested by #dontumer), hit "left shift+ left alt" until you get your layout back. It doesn't take more than two or three times. Once your layout is back then you can change keyboard settings if you are interested.

Validate Autocomplete in Eclipse

Coming from Visual Studio and starting a project in Java, I realized I couldn't cope with having to press ctrl+space to have the autocomplete panel show up. An easy workaround was to set all keyboard characters to be trigger characters for autocompletion.
My only problem is that, when presented with autocomplete suggestions, a single press on the space bar will write the first proposition. In situations where I'm happy with the suggestions, that's just fine. In situations where I actually want to use what I wrote down initially, I have to press 'escape' first to remove the autocomplete panel before I can press 'space' safely.
Netbeans doesn't use the space bar as a validating key for autocompletion (only 'enter' does that) and I like that behavior. Any way to replicate it in Eclipse?
Thanks in advance for your answers!
EDIT: I should have mentioned I'm using Eclipse on the Mac.
Guillaume
I have the same problem with Eclipse Indigo on Windows XP actually. Coming from intellij idea, I also felt the need to set the whole keyboard to trigger auto-complete.
A quick proof that SPACE key does accept suggestions : type inte on a new line. If the auto-complete menu shows, press SPACE. It goes for Integer.
If anyone knows how to set the SPACE key to "ignore suggestions", it would be great, because the escape key on my keyboard is also too far away :)
Thanks
Edit : actually the best would be to have only the ENTER key validating, because ';' and '(' also seem to validate
I just tried to reproduce your behavior, but couldn't. Here is the configuration I have (and the steps I have done to reproduce):
I have installed Indigo (current version of Eclipse, version number 3.7).
I did not change any configuration there, this is what is the default:
Under Window > Preferences > Java > Editor > Content Assist, I have the following settings:
Completion inserts (instead of overwrite)
Insert single proposal automatically (which is ok most of the time)
not insert common prefix automatically
I have a simple class, go down to a method, and do the following steps:
Enter this.no and wait some time. Sometimes I have to press CTRL + SPACE, sometimes not.
Proposal pops up which includes notify and notifyAll.
I press SPACE and a space is inserted in the text, the autocomplete suggestions are closed without inserting anything.
I do not know if older versions of eclipse have the same behavior.

Tab vs Space indenting (Dreamweaver vs NetBeans) problem

I use Dreamweaver at work and NetBeans IDE at home, but in both cases project is stored at github. My problem is that NetBeans seems to be constructing code indenting out of spaces and when opened in dreamweaver or exported to github, indenting here and there breaks (moves unexpectedly further then it was intended or vice versa), although when opened again in NetBeans, goes back to normal. It has been pain for some time already. Is there any resolution to this?
I should say that we at work (and me including) prefer tab indenting.
It depends on the IDE's definition of a TAB. There are usually options within the IDE to indent using a TAB but turn the TAB into a given number of SPACES. I usually indent using TAB but have the IDE turn that into 3 SPACES. This means that it doesn't matter what I (or anyone else) use to read my code later the indets are always the same.
In NetBeans you need to look in the Code Editor options but I have no idea where to find the settings in Dreamweaver.
Its been known that one should use double space rather than tab, because that fact that different IDEs define how the tab button works DIFFERENTLY.
For example, emberjs team require contributor to use double-space rather than tab for formatting the code.
It make sense that to use something recognized in common without an IDE, so that the code structure will not be a problem in a highly collaborated coding team environment.
HOWEVER, if customization of how a tab works in an IDE is enabled, tab will be a great time saver in this case-- Press twice the button cost 200% of the time to press one obviously :)
Hope that helps!