Move Line

Start a new line below or above your current line with the correct indentation.

Helen Scott

Helen Scott

editing    interface    java    kotlin   
Press ⇧⏎/kbd> (macOS) / Shift+Enter (Windows/Linux) to start a new line. You can do this at the start of a line, the middle of a line or the end of a line, the indentation will always be correct. Alternatively, to start a new line above your current line of code, you can press ⌘⌥⏎ (macOS) / Ctrl+Alt+Enter (Windows/Linux).
See Also

Related Resources

Create an Editor Fold
Create an editor fold to hide parts of your class
Clipboard history
Paste a subset or multiple entries from your recent history
Extend Selection
Extend and shrink selection