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 = '';
Ctrl+A
and keep hold ofShift+TAB