8.4 Statement Completion
Another form of auto completion provided by the Android Studio editor is statement completion. This can be used to automatically fill out the parentheses and braces for items such as methods and loop statements. Statement completion is invoked using the Shift-Ctrl-Enter (Shift-Cmd-Enter on macOS) keyboard sequence. Consider for example the following code:
myMethod()
Having typed this code into the editor, triggering statement completion will cause the editor to automatically add the braces to the method:
myMethod() {
}