Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Custom VSC ExtensionScriptNew to Visual Studio Code? Get it now.
Custom VSC ExtensionScript

Custom VSC ExtensionScript

invobzvr

|
127 installs
| (0) | Free
Writing custom VSCode extension scripts instead of installing extensions for single functions.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Custom VSCode ExtensionScript

Write custom VSCode extension scripts instead of installing extensions for single functions.

Usages

  • Set a script
    • (Optional) Switch to a javascript file (or new one will be opened)
      • use first commented line for its name, or use its filename
      • use require / vscode as an extension
    • Execute Custom VSC ExtensionScript: Set Script in command panel
  • Run / Edit / Delete a script
    • Execute in command panel
    • Select the script to act
  • AutoRun
    • Use keybinding (default: ctrl+`) to automatically run scripts that match certain conditions
      • If no script matches, users will be asked to select one to run
    • Set an array of object with key, value for scripts
    • So far supported keys:
      • languageId
      • isUntitled
    {
        "custom-extensionscript.tasks": {
            "Parse Json": [
                {
                    "key": "languageId",
                    "value": "json"
                }
            ],
            "Format Untitled Python": [
                {
                    "key": "languageId",
                    "value": "python"
                },
                {
                    "key": "isUntitled",
                    "value": true
                }
            ]
        }
    }
    

Examples

  • Reverse Lines
  • Parse Json
  • Format Untitled Python
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft