How does pycharm move the code block up / down using the keyboard
This article is about how pycharm moves blocks of code up / down using the keyboard. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Use the keyboard to move the code block up / down
We want to quickly process the code in the editor. Using cut-and-paste is a quick way, but there is a better way not to delete code from the file for the time being. Make a selection (without using the mouse), and then use (Shift-Alt-Up / Down Win / Linux,Option-Shift-Up / Down macOS) to move the selection to the target row. In the view, the selection keeps dragging.
Thank you for reading! This is the end of this article on "how pycharm uses the keyboard to move code blocks up / down". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!