1- # devdocs . helloWorld Documentation
1+ # devdocs . runProject Documentation
22
33## Brief Description
4- The `devdocs.helloWorld` command opens the Dev - docs interface , allowing users to access and manage their project documentation .
4+ `devdocs.runProject` is a command that runs the project associated with the current workspace in Visual Studio Code .
55
66## Usage
7- To use the `devdocs.helloWorld` command , you can either :
8- 1. Run it from the VSCode command palette
9- 2. Use the keyboard shortcut assigned to it
10- 3. Click on the "Open Dev-docs" button in the Dev - docs sidebar
7+ This command can be executed from the VS Code command palette or through a keyboard shortcut . It creates a new terminal and runs the project using a predefined npm script .
118
129## Parameters
1310This command does not accept any parameters .
1411
1512## Return Value
16- This command does not return a value . Instead , it opens the Dev - docs interface within VSCode .
13+ This command does not return a value . It executes an action within VS Code .
1714
1815## Examples
1916
20- ### Opening Dev - docs from the command palette
21- 1. Open the VSCode command palette ( Ctrl + Shift + P or Cmd + Shift + P on Mac )
22- 2. Type "Open Dev-docs" and select the `Dev-docs: Open Dev-docs` command
23-
24- ### Using a custom keyboard shortcut
25- 1. Open VSCode settings
26- 2. Search for "keyboard shortcuts"
27- 3. Add a new shortcut for the `devdocs.helloWorld` command
28- 4. Use your custom shortcut to quickly open Dev - docs
17+ 1. Running the project from the command palette :
18+ `` `
19+ 1. Open the command palette (Ctrl+Shift+P or Cmd+Shift+P)
20+ 2. Type "Dev-docs: Run Project"
21+ 3. Press Enter to execute the command
22+ ` ``
23+
24+ 2. Using a custom keybinding :
25+ `` `json
26+ {
27+ "key": "ctrl+alt+r",
28+ "command": "devdocs.runProject"
29+ }
30+ ` ``
31+ Add this to your `keybindings.json` file in VS Code , then use Ctrl + Alt + R to run the project .
2932
3033## Notes or Considerations
31- - Ensure you have initialized Dev - docs for your project before using this command
32- - The Dev - docs interface will open in a new editor tab within VSCode
33- - If you have previously opened Dev - docs and have unsaved changes , they will be preserved when reopening
34- - This command is part of the Dev - docs extension and requires the extension to be installed and activated in your VSCode environment
34+
35+ - This command assumes that your project can be started with the npm script `npm run start -- --host 0.0.0.0` .
36+ - Ensure that your `package.json` file has a `start` script defined .
37+ - The command creates a new terminal named "My Custom Terminal" for running the project .
38+ - If the project is already running in a terminal , executing this command will create a new terminal instance .
39+ - This command is particularly useful for projects that need to be run on a specific host ( 0.0 .0 .0 ) for development or testing purposes .
40+ - If your project requires a different start command , you may need to modify the extension or use a custom task instead .
0 commit comments