PyCharm allows copying and moving code fragments within the active editor tab, by means of drag-and-drop.
Procedures:
Web Resources: