Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.6k views
in Technique[技术] by (71.8m points)

python - How do I automatically dedent code in vscode?

I have a code similar to below open in vscode

def func():
    # Do something with about 24 lines

But then I feel like it would be better to remove my code from a function definition because of some problems ( which I assume do not matter at the moment).

Is there a way to remove the indents behind my lines of code or do I always have to dedent my code line by line.

Thanks in advance for your time.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...