4

I am only getting autocomplete in my xml layout when i type "android:" I want to get it whenever I press cmd+space. I am using a mac

enter image description here

user1163234
  • 2,407
  • 6
  • 35
  • 63

5 Answers5

1

Go to

Eclipse -> Preferences -> XML -> XML Files - > Editor -> Content Assist 

and tick all proposals checkboxes to allow this.

EDIT : Also tick Automatically make suggestions and Insert single proposals automatically checkboxes.

enter image description here

Chirag Ghori
  • 4,231
  • 2
  • 20
  • 35
0

Open Preferences and in the search type XML, you would find on the left pane a XML hierarchy and under editor you will have content assist. Just tick all the boxes there are in this page and you are good to go!

Aadi Droid
  • 1,689
  • 4
  • 22
  • 46
0

Window--->Preferences----->General------->Keys, find Content Assist and set attribute Binding as cmd + space, and attribute When as Editing in Structured Text Editors, if it still not work, right click on your xml file, choose open with, try to use Android Menu Editor. Good luck.

twlkyao
  • 14,302
  • 7
  • 27
  • 44
0

I found the solution: I needed to unselect in my mac SystemPref --> keyboard-->shortcuts there was a command "select the previous input source"

user1163234
  • 2,407
  • 6
  • 35
  • 63
0

All You want is code promption whatever you enter.

Eclipse -> Preferences -> XML -> XML Files - > Editor -> Content Assist

Then input "prompt when these characters are inserted" with

@+<=:abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

image to show where to input

BruceDu
  • 280
  • 3
  • 8