Action Directory / Indent Code

Install

Indents the selected text by 4 spaces

Shared by @ctietze

Script

const text = editor.getSelectedText();
var lines = text.split("\n");
lines = lines.map(function(l) { 
    return '    '+l;
});
editor.replaceSelection(lines.join("\n"));