You may be looking for a tool to create scripts with VS Code extension capabilities, Power Tools is a better choice.
Create scripts with VS Code extension capabilities.
code --install-extension zjffun.scripts
export default ({ vscodeExtra }) => {
const { replaceSelections } = vscodeExtra;
replaceSelections((text) => {
return JSON.stringify(text.split("\n"), null, 2);
});
};
{
"key": "cmd+5 l",
"command": "script.run",
"args": {
"script": "[script path]"
}
}
- Added features run scripts.