How do I automatically dedent code in vscode?

2.4k Views Asked by At

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.

1

There are 1 best solutions below

0
L_eo_042 On

In VS-Code/In general Just select the lines & use:

De-Denting Shift ⇧ + Tab ↹

Denting Tab ↹