mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 23:59:43 +01:00
Support to run the selected script in the editor
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
|
||||
## Features
|
||||
|
||||
### Task Running
|
||||
|
||||
This extension supports running npm scripts defined in the `package.json` as [tasks](https://code.visualstudio.com/docs/editor/tasks). Scripts with the name 'build', 'compile', or 'watch'
|
||||
are treated as build tasks.
|
||||
|
||||
@@ -11,6 +13,14 @@ To run scripts as tasks, use the **Tasks** menu.
|
||||
|
||||
For more information about auto detection of Tasks, see the [documentation](https://code.visualstudio.com/Docs/editor/tasks#_task-autodetection).
|
||||
|
||||
### Script Explorer
|
||||
|
||||
The Npm Script Explorer shows the npm scripts found in your workspace. The explorer view is enabled by the setting `npm.enableScriptExplorer`.
|
||||
|
||||
### Run Scripts from the Editor
|
||||
|
||||
The extension provides commands to run the script containing the selection.
|
||||
|
||||
## Settings
|
||||
|
||||
- `npm.autoDetect` - Enable detecting scripts as tasks, the default is `on`.
|
||||
|
||||
Reference in New Issue
Block a user