Are there any shortcuts, settings, or formatting in Visual Studio Code to remove the leading spaces where the code is written?
Usually these spaces appear when copying a certain block of code and then pasting it elsewhere, for example:
var variable1 = '';
var variable2 = '';
var variable3 = '';
var variable4 = '';
var variable5 = '';
Fixed it would look like this:
var variable1 = '';
var variable2 = '';
var variable3 = '';
var variable4 = '';
var variable5 = '';
Actually CTRL + SHIFT + F combination fix indention automatically. It does not need any extension. Right click and then choose 'Format Document'. It will fix all kind of indention including your problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With