Duplicate lines

Duplicate the current line or a selected block

Press ⌘D (macOS) / Ctrl+D (Windows/Linux) in the editor to duplicate a selected block, or the current line when no block is selected.


Related Resources

Creating code
IntelliJ IDEA will help create code for you
Related problems
Use IntelliJ IDEA's inlay hints to navigate to Related Problems
Using regex
Using language injection to work with Regex