Ryan Heitner
Ryan Heitner

Reputation: 13632

Code completion to in Android Studio

A question about the editor, I am not sure how to briefly phrase the question so I could not find an answer

I have just moved from Eclipse to Android Studio on the Mac.

If in a layout file, I start typing android:au, assuming I want to choose autotext see screenshot enter image description here

How can I get the completion to go upto the "to" of "auto". So that I just have to type the T and then enter to choose autoText.

Since there are no options without the "to" I should be allowed to select it.

Please let me know if my explanation is not clear enough

Upvotes: 48

Views: 43855

Answers (4)

Mina Fawzy
Mina Fawzy

Reputation: 21452

in Android studio open File----> Setting (Ctrl + Alt + S) you can use this shortcut

from Setting open Editor --->General --> Code Completion -- > change Case Sensitive Completion to None

look at image below

enter image description here

Upvotes: 27

user2936719
user2936719

Reputation: 165

make sure to disable "power save mode" in your File >> Power save mode.

Upvotes: 5

jonstaff
jonstaff

Reputation: 2672

You can set 'Case sensitive completion' to 'None' in IDE Settings > Editor > Code Completion.

Upvotes: 49

Anup Cowkur
Anup Cowkur

Reputation: 20563

Intellij (Studio) parses the whole text to search for your input characters by default. If you type "Text", it should show "autoText" in the options by default. You don't have to configure anything for this behavior.

It will give preference to exact matches though, so if you type in "Text" with a capital T, you're more likely to get the correct result than typing "text" with a small t.

You can change these preferences in:

Settings(or Preferences in mac)->Editor->Code Completion

Upvotes: 86

Related Questions