简体   繁体   English

[IntelliJ IDEA] [Android Studio]使用半冒号键时自动完成

[英][IntelliJ IDEA][Android Studio] Autocomplete when using semi colon key

Resharper has (or had) a feature allowing autocompletion to be triggered when pressing semi colon, so I don't have to press enter to autocomplete and then semi colon. Resharper具有(或具有)允许在按半冒号时触发自动完成的功能,因此我不必按Enter即可自动完成,然后再进行半冒号。

I can't find how to enable this feature in IntelliJ/Android Studio. 我找不到如何在IntelliJ / Android Studio中启用此功能。 Is there any way to do this? 有什么办法吗?

IntelliJ has something similar, but it works for space, dot and semicolon (maybe other characters). IntelliJ有类似的东西,但是它适用于空格,点和分号(也许其他字符)。 Not sure if the behavior can be modified if you want IntelliJ to autocomplete only on semicolon. 如果希望IntelliJ仅在分号上自动完成,则不确定是否可以修改该行为。 Here is how you enable it: 启用方法如下:

  • Go to Settings/Editor/General/Code Completion 转到设置/编辑器/常规/代码完成
  • Enable Insert selected variant by typing dot, space, etc. 通过输入点,空格等启用插入选定的变体。

在此处输入图片说明

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

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