shortcut to duplicate a line in python code example Example: pycharm duplicate line Ctrl + D # duplicate line or selection in pycharm