IDE Scripting
Effective VSCode API explorer / playground. Enjoy!
Example Usages
One-Time Scripts
- run specific command on every line/specific lines
- find line by processing outline
- open every file by using glob to fix diagnostics, that are not displayed in problems panel
Use & install modules
You can import packages from global node_modules. For example:
npm i -g superb
import superb from 'superb'
info(`You are ${superb.random()}`) // You are awesome
Or
npm i -g jsonc-parser
import {parseTree} from 'jsonc-parser'
console.show() // show console
console.dir(parseTree(text), {
depth: 6
}) // observe tree
Code Examples
// count files
const item = trackDisposable(vscode.window.createStatusBarItem())
item.show()
item.text = '...'
vscode.workspace.findFiles('**/*.js', '**/node_modules/**').then((files) => {
// Want to do something special with each file?
item.text = 'Files: '+files.length
})
Some More Screenshots


| |