Eclipse square bracket [] problem
Saturday, June 6, 2009 18:04Some people will experience a problem with Eclipse when trying to close the square brackets []. Eclipse will complain about not beeing able to evaluate a text selection and it won’t allow you typing that closing bracket. I got frustrated a bit because of not knowing whats going on. It wasn’t possible to write simple code like int *i = new int[10];
I figured out that on some keyboard layouts the bracket sits on the character that is assigned as a HotKey. In my case it was the ‘G’ keyboard button. Basically what you have to do is just disable the HotKey for that combination by going to:
Window » Preferences » General » Keys
and find the combination (in my case: ctrl + alt + G » Find Text in Workspace) and disable it.