简体   繁体   English

如何在 Android Studio 中禁用代码完成?

[英]How to disable Code Completion in Android Studio?

I am new in Android Programming and I want to disable the auto-completion in Android studio.我是 Android 编程新手,我想在 Android Studio 中禁用自动完成功能。 I think this might even improve my coding ability and help me to understand the API Structure.我认为这甚至可以提高我的编码能力并帮助我理解 API 结构。 I've done a lot of search in Google, but nothing found positive.我在谷歌上做了很多搜索,但没有任何积极的结果。 So how to disable the auto-completion in Android Studio ?那么如何在 Android Studio 中禁用auto-completion功能呢? I want disable code-completion of every language ( XML , JAVA , Groovy ...).我想禁用每种语言的代码完成( XMLJAVAGroovy ...)。

I want to show nothing even if I press the ctrl + space .即使按ctrl + space ,我也不想显示任何内容。

Go to File-> Setting-> Editor unchecked all check box 转到文件 - >设置 - >编辑器未选中全部复选框

在此输入图像描述

Then Go to File-> Setting-> Keymap-> Main Menu->Code->Completion remove all hot keys and apply. 然后转到文件 - >设置 - >键盘 - >主菜单 - >代码 - >完成删除所有热键并应用。

在此输入图像描述

File -> Power Saver Mode 文件 - >节电模式

This disables a bunch of features, including code completion 这会禁用许多功能,包括代码完成

Go to

File-> Setting-> Editor 文件 - >设置 - >编辑器

unchecked all check box 取消选中所有复选框

在此输入图像描述

then 然后

Go to Keymap-> type basic in search box 转到Keymap->在搜索框中键入basic

Then Under Main Menu-> Code -> Completion-> select Basic ->Right click ->remove Ctrl+Space 然后在主菜单 - >代码 - >完成 - >选择基本 - >右键单击 - >删除Ctrl +空格键

assign 分配

Ctrl+Space to any other option Ctrl + Space到任何其他选项

在此输入图像描述

none of this works for XML tags..... it is still completing the tags jesus.. anyone know how to stop completing the xml tags, I want to write the code myself so I can learn better.这些都不适用于 XML 标签......它仍在完成标签耶稣......任何人都知道如何停止完成 xml 标签,我想自己编写代码以便我可以更好地学习。 Thanks.谢谢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM