Settings to copy paste with correct indentation in Visual Studio Code November 28, 2022 by Tarik This is already integrated in vscode with "editor.formatOnPaste": true property in settings.