Autocompletion not showing in Android Studio with dual screens

≡放荡痞女 提交于 2019-12-07 06:19:50

问题


I just switched from Eclipse to Android Studio (IntelliJ).

I can't figure out how the autocompletion works! I tried Control + Space, Control + Shift + Space but i have no relevant suggestion. Not in the Java files, not in the layout files.

Is there another shortcut? Do I need to enable some option beforehand?


回答1:


Preferences > Keymap > Code > Completion > Basic/SmartType:




回答2:


It was actually a display problem. I'm using two screens, and the suggestions only appear when the IDE is on the main one.

The (imperfect) solution is to define the display where I'm using the IDE as the main one.




回答3:


Just remove all the folder "AndroidStudioPreview";

On Windows:

Go to your User Folder - on Windows 7/8 this would be:

[SYSDRIVE]:\Users\[your username] (ex. C:\Users\JohnDoe\)

In this folder there should be a folder called .AndroidStudioPreview

On Mac OS X

Remove these files:

~/Library/Application Support/AndroidStudioPreview
~/Library/Caches/AndroidStudioPreview
~/Library/Logs/AndroidStudioPreview
~/Library/Preferences/AndroidStudioPreview



回答4:


You can get your Autocompletion suggestions back in Android Studio by doing: File>Invalidate Coches/Restart...>Invalidate and Restart



来源:https://stackoverflow.com/questions/17553489/autocompletion-not-showing-in-android-studio-with-dual-screens

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!