Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>IDE ScriptingNew to Visual Studio Code? Get it now.
IDE Scripting

IDE Scripting

zardoy

|
188 installs
| (0) | Free
True scripting using full VSCode API !
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

screenshot-1


screenshot-2

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft