I know Ctrl+Alt+L will do the trick, but is it possible to achieve this without hitting any key?Thanks.
答案 0 :(得分:0)
Yes, it is possible and pycharm does that. Suppose if you write a function or condition or loop if you add colon after that and hit enter pycharm automatically format your code.
Example-
*
def function(): in this statement if you hit enter pycharm format you code and show cursor to the next line after a tab space.
*