Okay
A VSCode extension that makes it really easy to write and run one-off scripts, in any language.
Usage
By default, Okay generates node.js scripts in os.tmpdir():
- cmd + k cmd + k: open or run the last Okay node.js script.
- cmd + n cmd + n: create a new Okay node.js script.
Extension Settings
You can modify the following extension settings to make Okay generate and run scripts in any language:
| Config |
Description |
Default |
| execCommand |
The bash command Okay will use to run Okay scripts |
node {filename} |
| scriptExtension |
The file extensions of generated Okay scripts |
js |
| scriptDir |
The directory where Okay scripts are placed |
os.tmpdir() |
| scriptTemplate |
The Okay script template |
"// Write some node js \n" |
Use Cases
Set scriptDir. Place a utils file inside scriptDir. Now, all your Okay scripts can use shared utilities.
Install
VSCode Marketplace: okay
| |