Reputation: 2236
I am transitioning from eclipse to android studio and wondering how I can enable the auto-complete in javadoc comments. For example in eclipse, in javadoc comments if we type HttpRe
and press Ctrl+Space, it gives the option of {@link HttpRequest}
tag or if we type <cod
and press Ctrl+Space, it is changed to <code></code>
.
How can I enable this in android studio?
Upvotes: 0
Views: 466
Reputation: 5101
I am coming from Eclipse, too. Auto-completion is enabled by default, but you have to understand these IntelliJ concepts:
Code Completion: Type <code>
and IntelliJ will autocomplete it to<code></code>
.
Class Name Completion: Type HttpRe
and press Ctrl+Alt+Space to complete it to HttpRequest
. You can also type Ctrl+Space twice, which is what I do.
Live Template: Select HttpRequest
and type Ctrl+Alt+Jto surround it with {@link...}
Upvotes: 1