/vscode-extension

Terminal Tools

Primary LanguageTypeScript

Terminal Tools

Preview

tools Preview

Usage

[img]Usage

Features

BUTTON DESC
remember the active file then can run it when you are editting other files
CD
cd to the active file's path
cmd
select default or custom directives to run in the terminal. Like installing some frequently used packages
Clear
clear the active terminal
Rerun
restart the active terminal then run the active js/ts file
Run
run the active js/ts file
Stop
restart the active terminal to destroy the running task

Configuration

example

{
    // custom directives
    "terminal-tools.directives": [
        "npm run sync",
    ],
    "terminal-tools.dependencies": [
        "customDependency"
    ],
    "terminal-tools.devDependencies": [
        "customDevDependency@version"
    ],
    "terminal-tools.globalDependencies": [
        "customDependency@^1.0.0"
    ],
    // use defualt or custom
    "terminal-tools.options": {
        "directives": "default",
        "dependencies": "default",
        "devDependencies": "default",
        "globalDependencies": "default",
        "tools": "default",
        "sudo": false,
        // use npm or other else
        "install": "npm",
        "installOptions": [
            "--registry http://registry.npmjs.org"
        ]
    }
}

use custom directives only

{
    "terminal-tools.options": {
        "directives": "custom"
    }
}