How to quickly add a new row to pycharm
This article is about how pycharm can quickly add a new line. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Quickly add a new line
We often add a line of code in the middle of another line. Maybe we're fixing some problems and want to move on to the next line. It usually takes two steps to go to the end of the line, press enter to add a line on it, or go to the beginning of the line and press Enter to make room at the top, press up to go to the new blank line, maybe press Tab a few times to make the indentation correct, but use the Start New Line function (Shift-Enter Win / Linux / macOS).
Place the cursor anywhere in the current line (just finished editing), and then you can use the correct indentation to get the empty next line. For the above lines, use "start a new line before the current position" (Ctrl-Alt-Enter Win / Linux,Option-Cmd-Enter macOS). You will get a new line and indent it based on the language and context
Thank you for reading! This is the end of this article on "how to quickly add a new line to pycharm". 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 for more people to see!