Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>RunTasksNew to Visual Studio Code? Get it now.
RunTasks

RunTasks

easyatm

|
1 install
| (0) | Free
Run .vscode/tasks.json tasks instantly — no extension activation delays
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info
中文说明

RunTasks

直接在资源管理器侧栏运行 tasks.json 和 package.json 中的任务,避免触发其他任务扩展的延迟激活。

主要特性

  • 直接执行缓存的 vscode.Task,避免走 workbench.action.tasks.runTask。
  • 同时展示 vscode 任务与 npm 脚本,支持多根工作区和主工作区下一级物理子目录。
  • 主工作区和二级文件夹都会始终保留 vscode / npm 来源分组,即使当前只有一种任务来源。
  • 只要有任务正在运行,列表顶部就会新增“运行中”分组,集中显示当前运行项。
  • 点击未运行任务时,会用预览标签页定位到对应的 tasks.json 或 package.json 定义行。
  • 点击运行中任务时,会先定位到该任务终端,再预览对应配置行。
  • 运行中任务继续使用 VS Code 默认的旋转图标提示状态,运行中分组则使用扩展 logo 图标。
  • 隐藏、收藏、固定、快捷键、运行时显示终端、自动运行、显示名重命名都写入 .vscode/settings.json,不改任务原始定义;同名任务会按内部任务标识区分,不再互相串状态。
  • 逻辑型右键菜单项使用勾选文案表达当前状态,例如 ✓ 收藏、✓ 固定到状态栏、✓ 运行时显示终端。
  • runTasks.revealTerminalTasks 默认为空,也就是默认不主动显示终端;按任务单独开启。
  • runTasks.autoRunTasks 会在 VS Code 启动后自动拉起对应任务;任务稳定运行后若意外退出会立即重启,手动点停止则暂停本次会话中的自动重启。
  • runTasks.renamedTaskLabels 只改扩展里的显示名,原始 label 仍用于运行、依赖匹配和定位。
  • 图标会优先使用 tasks.json 的 icon.id / icon.color,否则按命令推断;已覆盖 npm、Python、TypeScript、Shell、PowerShell、Docker,以及 cmake、cl.exe、make、ninja、gcc、g++、clang 等 C/C++ 构建命令。

开发

  • npm install
  • npm run compile
  • 按 F5 启动扩展宿主调试
  • npm run package

RunTasks

Run tasks from tasks.json and package.json directly in the Explorer view without waking up every task-provider extension in VS Code.

Highlights

  • Executes cached vscode.Task objects directly instead of routing through workbench.action.tasks.runTask.
  • Shows both vscode tasks and npm scripts, including multi-root workspaces and first-level physical subfolders under the primary workspace.
  • Always keeps vscode and npm source groups for both the main workspace and nested folders, even when only one source exists.
  • Adds a Running group at the top whenever any task is active.
  • Clicking an idle task previews the matching definition line in tasks.json or package.json.
  • Clicking a running task reveals its terminal and also previews the corresponding configuration line.
  • Running tasks keep the default spinning indicator, while the Running group uses the extension logo.
  • Hide, favorite, pin, shortcut, reveal-terminal, auto-run, and display-name rename preferences are stored in .vscode/settings.json instead of rewriting task definitions, and same-name tasks are separated by an internal task identity key.
  • Checked menu states are shown with text markers such as ✓ Favorite and ✓ Show Terminal on Run.
  • runTasks.revealTerminalTasks is opt-in and empty by default, so terminals stay hidden unless enabled per task.
  • runTasks.autoRunTasks starts selected tasks after VS Code launches; once a task stays up, unexpected exits trigger an immediate restart until the user stops it manually.
  • runTasks.renamedTaskLabels only affects the name shown by RunTasks; the original task label still drives execution and matching.
  • Icon heuristics cover npm, Python, TypeScript, Shell, PowerShell, Docker, and C/C++ build commands such as cmake, cl.exe, make, ninja, gcc, g++, and clang.

Author: easyatm

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