### Install Git with Sudo Source: https://code.visualstudio.com/docs/devcontainers/create-dev-container Example of installing Git using sudo and apt-get in the integrated terminal. ```bash # If sudo is installed and configured sudo apt-get update # Install Git sudo apt-get install git ``` -------------------------------- ### Clone Spring Boot Getting Started Project Source: https://code.visualstudio.com/docs/java/java-spring-apps Clone the Spring Boot Getting Started sample project from GitHub using the Git: Clone command in the VS Code Command Palette. ```shell git clone https://github.com/spring-guides/gs-spring-boot.git ``` -------------------------------- ### Agent Prompt Example: CI/CD Pipeline Setup Source: https://code.visualstudio.com/docs/agents/agent-types/local-agents Use this prompt to ask the 'Agent' to set up a CI/CD pipeline for a project. ```markdown Set up a CI/CD pipeline for this project. ``` -------------------------------- ### Manually install VS Code apt repository Source: https://code.visualstudio.com/docs/setup/linux Installs the VS Code signing key and configures the apt repository for manual setup. ```bash sudo apt install wget gpg && wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /usr/share/keyrings/microsoft.gpg ``` ```text Types: deb URIs: https://packages.microsoft.com/repos/code Suites: stable Components: main Architectures: amd64,arm64,armhf Signed-By: /usr/share/keyrings/microsoft.gpg ``` ```bash sudo apt update && sudo apt install code # or code-insiders ``` -------------------------------- ### Set up Testing Framework Source: https://code.visualstudio.com/docs/agents/reference/ai-features-cheat-sheet Use the `/setupTests` slash command in chat to get assistance with setting up a testing framework. The AI can recommend frameworks, provide setup steps, and suggest relevant VS Code extensions. ```plaintext /setupTests ``` -------------------------------- ### Dev Container Build and Run Output Source: https://code.visualstudio.com/docs/devcontainers/devcontainer-cli Example output showing the process of building a Docker image for a dev container and starting the container. Includes build steps and container startup confirmation. ```Bash [88 ms] dev-containers-cli 0.1.0. [165 ms] Start: Run: docker build -f /home/node/vscode-remote-try-rust/.devcontainer/Dockerfile -t vsc-vscode-remote-try-rust-89420ad7399ba74f55921e49cc3ecfd2 --build-arg VARIANT=bullseye /home/node/vscode-remote-try-rust/.devcontainer [+] Building 0.5s (5/5) FINISHED => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 38B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for mcr.microsoft.com/vscode/devcontainers/r 0.4s => CACHED [1/1] FROM mcr.microsoft.com/vscode/devcontainers/rust:1-bulls 0.0s => exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:39873ccb81e6fb613975e11e37438eee1d49c963a436d 0.0s => => naming to docker.io/library/vsc-vscode-remote-try-rust-89420ad7399 0.0s [1640 ms] Start: Run: docker run --sig-proxy=false -a STDOUT -a STDERR --mount type=bind,source=/home/node/vscode-remote-try-rust,target=/workspaces/vscode-remote-try-rust -l devcontainer.local_folder=/home/node/vscode-remote-try-rust --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --entrypoint /bin/sh vsc-vscode-remote-try-rust-89420ad7399ba74f55921e49cc3ecfd2-uid -c echo Container started Container started {"outcome":"success","containerId":"f0a055ff056c1c1bb99cc09930efbf3a0437c54d9b4644695aa23c1d57b4bd11","remoteUser":"vscode","remoteWorkspaceFolder":"/workspaces/vscode-remote-try-rust"} ``` -------------------------------- ### Start a Local Web Server Source: https://code.visualstudio.com/docs/debugtest/port-forwarding Use this command to start a local web server on port 3000 if you have Node.js installed. This is a prerequisite for port forwarding. ```bash npx serve ``` -------------------------------- ### Get Command Line Help Source: https://code.visualstudio.com/docs/configure/command-line Open a terminal or command prompt and type `code --help` to see the version, usage example, and a list of command-line options. ```bash code --help ``` -------------------------------- ### Install an Extension from the Command Line Source: https://code.visualstudio.com/docs/configure/command-line Use the `--install-extension` argument to install or update extensions. You can specify the extension by its publisher.extension ID or a path to a VSIX file. Version-specific installations and forced updates are supported. ```bash code --install-extension publisher.extension code --install-extension publisher.extension@1.2.3 code --install-extension path/to/extension.vsix --force ``` -------------------------------- ### Configure Existing .NET Installation (Windows) Source: https://code.visualstudio.com/docs/csharp/cs-dev-kit-faq Point the C# Dev Kit extension to an existing .NET installation on Windows. This is useful if automatic installation fails or to reuse a pre-installed SDK. ```json { "dotnetAcquisitionExtension.existingDotnetPath": [ { "extensionId": "msazuretools.azurerm-vscode-tools", "path": "C:\\Program Files\\dotnet\\dotnet.exe" } ] } ``` -------------------------------- ### Example extensions.json for Workspace Recommendations Source: https://code.visualstudio.com/docs/configure/extensions/extension-marketplace This JSON file lists recommended extensions for a workspace. It includes identifiers for a linter and a code formatter. VS Code prompts users to install these when the workspace is opened. ```json { "recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"] } ``` -------------------------------- ### Install Traceloop SDK for Node.js Source: https://code.visualstudio.com/docs/intelligentapps/tracing Install the Traceloop Node.js server SDK using npm. ```bash npm install @traceloop/node-server-sdk ``` -------------------------------- ### Configure Existing .NET Installation (macOS) Source: https://code.visualstudio.com/docs/csharp/cs-dev-kit-faq Point the C# Dev Kit extension to an existing .NET installation on macOS. This is useful if automatic installation fails or to reuse a pre-installed SDK. ```json { "dotnetAcquisitionExtension.existingDotnetPath": [ { "extensionId": "msazuretools.azurerm-vscode-tools", "path": "/usr/local/share/dotnet/dotnet" } ] } ``` -------------------------------- ### Create and Navigate to Project Directory Source: https://code.visualstudio.com/docs/languages/typescript Set up a new project directory for a 'Hello World' example and open it in VS Code. ```bash mkdir HelloWorld cd HelloWorld code . ``` -------------------------------- ### Example launchSettings.json Profile Source: https://code.visualstudio.com/docs/csharp/debugger-settings An example of a launchSettings.json file structure, demonstrating how environment variables can be defined for a specific profile. ```json { "profiles": { "ProfileNameGoesHere": { "commandName": "Project", "environmentVariables": { "myVariableName": "theValueGoesHere" } } } } ``` -------------------------------- ### Install and Enable OpenSSH Server on RHEL/CentOS Source: https://code.visualstudio.com/docs/remote/troubleshooting Installs, starts, and enables the OpenSSH server service on RHEL/CentOS 7+ systems. ```bash sudo yum install openssh-server && sudo systemctl start sshd.service && sudo systemctl enable sshd.service ``` -------------------------------- ### Customize Indent Guide Color Source: https://code.visualstudio.com/docs/editing/userinterface Use the `workbench.colorCustomizations` setting in `settings.json` to change the background color of editor indent guides. This example sets the indent guides to bright blue. ```json "workbench.colorCustomizations": { "editorIndentGuide.background": "#0000ff" } ``` -------------------------------- ### Start a Dev Container from a Sample Project Source: https://code.visualstudio.com/docs/devcontainers/devcontainer-cli Clone a sample Rust project and start a dev container using the 'devcontainer up' command. This downloads the container image and launches the environment. ```Bash git clone https://github.com/microsoft/vscode-remote-try-rust devcontainer up --workspace-folder ``` -------------------------------- ### Run React Application Source: https://code.visualstudio.com/docs/nodejs/reactjs-tutorial Navigate to the project directory and use `npm start` to launch the development server and open the app in a browser. ```bash cd my-app npm start ``` -------------------------------- ### Open PowerShell Extension Examples Folder Source: https://code.visualstudio.com/docs/languages/powershell Run this command in your PowerShell prompt to open the example scripts folder provided by the PowerShell extension. It locates the latest installed version of the extension and opens its examples directory. ```powershell code (Get-ChildItem ~\.vscode\extensions\ms-vscode.PowerShell-*\examples)[-1] ``` -------------------------------- ### Terminal Tasks: Install npm Packages Source: https://code.visualstudio.com/docs/agents/guides/prompt-examples Use terminal inline chat to get help with shell commands. This prompt asks how to install npm packages. ```markdown How do I install npm packages? ``` -------------------------------- ### Start debugpy listener for a script Source: https://code.visualstudio.com/docs/python/debugging Start the debugpy listener from the command line to debug a Python script. This example does not wait for a client to attach, suitable for long-running scripts. ```bash python -m debugpy --listen 5678 ./myscript.py ``` -------------------------------- ### Create and Navigate to Project Directory Source: https://code.visualstudio.com/docs/cpp/config-linux Set up a new directory for your VS Code projects and create a subdirectory for your 'helloworld' project. Then, open the project folder in VS Code. ```bash mkdir projects cd projects mkdir helloworld cd helloworld code . ``` -------------------------------- ### Debug Start Keybinding with When Clause Source: https://code.visualstudio.com/docs/configure/keybindings Configure a keybinding that is only active under specific conditions. This example uses F5 to start debugging, but only when debuggers are available and the editor is not already in debug mode. ```json { "key": "f5", "command": "workbench.action.debug.start", "when": "debuggersAvailable && !inDebugMode" } ``` -------------------------------- ### Create a Simple 'Hello World' Application Source: https://code.visualstudio.com/docs/introvideos/codeediting Create a basic JavaScript file named 'app.js' to serve as a 'Hello World' console application. ```javascript console.log("Hello world!"); ``` -------------------------------- ### Install VS Code Server Prerequisites on Debian/Ubuntu WSL Source: https://code.visualstudio.com/docs/remote/troubleshooting Update package lists and install wget and ca-certificates on Debian or Ubuntu WSL distributions. These libraries are required for the VS Code server to start. ```Shell sudo apt-get update && sudo apt-get install wget ca-certificates ``` -------------------------------- ### C++ Launch Configuration Example Source: https://code.visualstudio.com/docs/cpp/launch-json-reference This is a sample `launch.json` configuration for launching a C++ application on Windows. It demonstrates settings for the program path, symbol search path, external console usage, logging options, and visualizer files. ```json { "name": "C++ Launch (Windows)", "type": "cppvsdbg", "request": "launch", "program": "C:\\app1\\Debug\\app1.exe", "symbolSearchPath": "C:\\Symbols;C:\\SymbolDir2", "externalConsole": true, "logging": { "moduleLoad": false, "trace": true }, "visualizerFile": "${workspaceFolder}/my.natvis", "showDisplayString": true } ``` -------------------------------- ### Create and Run a Python Hello World App Source: https://code.visualstudio.com/docs/remote/wsl-tutorial Create a new directory, navigate into it, create a Python file that prints a message, and then execute it. This demonstrates basic Python execution within WSL. ```Bash mkdir helloWorld && cd helloWorld echo 'print("hello from python on ubuntu on windows!")' >> hello.py python3 hello.py ``` -------------------------------- ### Example Keyboard Shortcut Rules Source: https://code.visualstudio.com/docs/configure/keybindings Demonstrates various keyboard shortcut configurations including context-specific, complementary, global, and chorded shortcuts. ```JSON // Keyboard shortcuts that are active when the focus is in the editor { "key": "home", "command": "cursorHome", "when": "editorTextFocus" }, { "key": "shift+home", "command": "cursorHomeSelect", "when": "editorTextFocus" }, // Keyboard shortcuts that are complementary { "key": "f5", "command": "workbench.action.debug.continue", "when": "inDebugMode" }, { "key": "f5", "command": "workbench.action.debug.start", "when": "!inDebugMode" }, // Global keyboard shortcuts { "key": "ctrl+f", "command": "actions.find" }, { "key": "alt+left", "command": "workbench.action.navigateBack" }, { "key": "alt+right", "command": "workbench.action.navigateForward" }, // Global keyboard shortcuts using chords (two separate keypress actions) { "key": "ctrl+k enter", "command": "workbench.action.keepEditor" }, { "key": "ctrl+k ctrl+w", "command": "workbench.action.closeAllEditors" } ``` -------------------------------- ### Crosstool-ng Docker Environment Setup Source: https://code.visualstudio.com/docs/remote/faq A Dockerfile to set up an environment with Crosstool-ng installed, useful for building sysroots for older Linux distributions. ```docker FROM ubuntu:latest RUN apt-get update RUN apt-get install -y gcc g++ gperf bison flex texinfo help2man make libncurses5-dev \ python3-dev autoconf automake libtool libtool-bin gawk wget bzip2 xz-utils unzip \ patch rsync meson ninja-build ``` -------------------------------- ### Update Package Lists Source: https://code.visualstudio.com/docs/cpp/cmake-linux Update the Ubuntu package lists before installing new software. This ensures you get the latest available packages. ```bash sudo apt-get update ``` -------------------------------- ### Example .env File Content Source: https://code.visualstudio.com/docs/nodejs/nodejs-debugging Demonstrates the format of an `.env` file, including comments, empty values, and quoted strings with newlines. ```Text USER=doe PASSWORD=abc123 # a comment # an empty value: empty= # new lines expanded in quoted strings: lines="foo\nbar" ``` -------------------------------- ### Provision Azure Resources for Inference Source: https://code.visualstudio.com/docs/intelligentapps/finetune-legacy Initiates the setup of Azure resources required for model inference. This command guides you through selecting subscriptions and resource groups. ```shell Foundry Toolkit: Provision Azure Container Apps for inference ``` -------------------------------- ### Basic devcontainer.json Configuration Source: https://code.visualstudio.com/docs/devcontainers/containers A simple devcontainer.json example using a pre-built TypeScript Node.js image, forwarding a port, and specifying a VS Code extension to install. ```json { "image": "mcr.microsoft.com/devcontainers/typescript-node", "forwardPorts": [3000], "customizations": { // Configure properties specific to VS Code. "vscode": { // Add the IDs of extensions you want installed when the container is created. "extensions": ["streetsidesoftware.code-spell-checker"] } } } ``` -------------------------------- ### Example MCP Server Configuration with Input Variable Source: https://code.visualstudio.com/docs/agents/reference/mcp-configuration This example demonstrates how to configure a local server that requires an API key using an input variable. The API key is prompted for and securely stored. ```json { "inputs": [ { "type": "promptString", "id": "perplexity-key", "description": "Perplexity API Key", "password": true } ], "servers": { "perplexity": { "type": "stdio", "command": "npx", "args": ["-y", "server-perplexity-ask"], "env": { "PERPLEXITY_API_KEY": "${input:perplexity-key}" } } } } ``` -------------------------------- ### Create a Code Cell Source: https://code.visualstudio.com/docs/datascience/jupyter-notebooks Add Python code to a new or existing code cell to get started. This is the basic step for writing and executing code in a notebook. ```python msg = "Hello world" print(msg) ``` -------------------------------- ### Navigate to project and install dependencies Source: https://code.visualstudio.com/docs/nodejs/vuejs-tutorial After creating a Vue.js project, navigate into the project directory and install its dependencies using npm. ```bash cd npm install ``` -------------------------------- ### nodemon command line execution Source: https://code.visualstudio.com/docs/nodejs/nodejs-debugging Example of how to start a Node.js application with nodemon for debugging purposes from the command line. The `--inspect` flag enables the debugger to attach. ```bash nodemon --inspect server.js ``` -------------------------------- ### Install LTS Node.js with NVM Source: https://code.visualstudio.com/docs/devcontainers/create-dev-container Use postCreateCommand with bash -i -c to install the LTS version of Node.js using NVM. ```json "postCreateCommand": "bash -i -c 'nvm install --lts'" ``` -------------------------------- ### Migrated Portable Mode Structure (Windows) Source: https://code.visualstudio.com/docs/setup/portable Example of the directory structure on Windows after migrating an existing installation to Portable mode, with user data and extensions within the 'data' folder. ```text |- VSCode-win32-x64-1.84.2 | |- Code.exe (or code executable) | |- data | | |- user-data | | | |- ... | | |- extensions | | | |- ... | |- ... ``` -------------------------------- ### macOS Framework Path Example Source: https://code.visualstudio.com/docs/cpp/config-clang-mac This example demonstrates the correct path for the Mac framework setting. Ensure the `Mac framework path` in VS Code's Advanced Settings points to your system's SDK headers. ```text /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks ``` -------------------------------- ### Django Development Server Output Source: https://code.visualstudio.com/docs/python/tutorial-django This is an example of the output seen in the terminal when the Django development server starts. It confirms system checks, Django version, settings, and the server address. ```Bash Watching for file changes with StatReloader Performing system checks... System check identified no issues (0 silenced). June 13, 2023 - 18:38:07 Django version 4.2.2, using settings 'web_project.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. ``` -------------------------------- ### Example c_cpp_properties.json Configuration Source: https://code.visualstudio.com/docs/cpp/customize-default-settings-cpp This JSON snippet demonstrates a sample configuration for the c_cpp_properties.json file, including environment variables and a specific configuration for macOS. It shows how to define include paths, defines, compiler paths, and IntelliSense modes. ```json { "env": { "myIncludePath": ["${workspaceFolder}/include", "${workspaceFolder}/src"], "myDefines": ["DEBUG", "MY_FEATURE=1"] }, "configurations": [ { "name": "Mac", "compilerPath": "/usr/bin/clang++", "intelliSenseMode": "macos-clang-x64", "includePath": ["${myIncludePath}", "${workspaceFolder}/**"], "defines": ["${myDefines}"], "cStandard": "c17", "cppStandard": "c++20", "macFrameworkPath": ["/System/Library/Frameworks", "/Library/Frameworks"], "browse": { "path": ["${myIncludePath}", "${workspaceFolder}"] } } ], "version": 4, "enableConfigurationSquiggles": true } ``` -------------------------------- ### Execute Commands in a Dev Container Source: https://code.visualstudio.com/docs/devcontainers/devcontainer-cli Run commands within an already started dev container using 'devcontainer exec'. This example compiles and runs a Rust sample project. ```Bash devcontainer exec --workspace-folder cargo run ``` -------------------------------- ### Example c_cpp_properties.json Configuration Source: https://code.visualstudio.com/docs/cpp/customize-cpp-settings This JSON snippet demonstrates a sample configuration for the c_cpp_properties.json file, including environment variables and a specific configuration for macOS. It shows how to define include paths, defines, compiler paths, and IntelliSense modes. ```json { "env": { "myIncludePath": ["${workspaceFolder}/include", "${workspaceFolder}/src"], "myDefines": ["DEBUG", "MY_FEATURE=1"] }, "configurations": [ { "name": "Mac", "compilerPath": "/usr/bin/clang++", "intelliSenseMode": "macos-clang-x64", "includePath": ["${myIncludePath}", "${workspaceFolder}/**"], "defines": ["${myDefines}"], "cStandard": "c17", "cppStandard": "c++20", "macFrameworkPath": ["/System/Library/Frameworks", "/Library/Frameworks"], "browse": { "path": ["${myIncludePath}", "${workspaceFolder}"] } } ], "version": 4, "enableConfigurationSquiggles": true } ``` -------------------------------- ### Start Chat Session from Command Line Source: https://code.visualstudio.com/docs/configure/command-line Initiate a chat session directly from the CLI using the `chat` subcommand. Provide a prompt to guide the chat session for the current directory. ```bash code chat "Find and fix all untyped variables" ``` -------------------------------- ### Install OpenTelemetry SDK and OpenAI Instrumentation Source: https://code.visualstudio.com/docs/intelligentapps/tracing Install OpenTelemetry SDK, OTLP HTTP exporter, and the OpenAI v2 instrumentation package. ```bash pip install opentelemetry-sdk opentelemetry-exporter-otlp-proto-http opentelemetry-instrumentation-openai-v2 ``` -------------------------------- ### Start VS Code Insiders Server Tunnel Source: https://code.visualstudio.com/docs/datascience/notebooks-web Initiates a secure tunnel using the daily release of VS Code Server. Ensure the 'code-insiders' CLI is installed on the remote machine. ```bash code-insiders tunnel ``` -------------------------------- ### Python Script Debugging Setup Source: https://code.visualstudio.com/docs/python/debugging Add this code to your Python script to enable debugging. It listens on a specified port and waits for a debugger client to attach before proceeding. Ensure debugpy is installed. ```python import debugpy # 5678 is the default attach port in the VS Code debug configurations. Unless a host and port are specified, host defaults to 127.0.0.1 debugpy.listen(5678) print("Waiting for debugger attach") debugpy.wait_for_client() debugpy.breakpoint() print('break on this line') ``` -------------------------------- ### Folder Structure Example Source: https://code.visualstudio.com/docs/editing/workspaces/workspace-trust Organize trusted and experimental repositories under parent folders for better workspace management. ```text ├── TrustedRepos - Clone trusted repositories under this parent folder └── ForEvaluation - Clone experimental or unfamiliar repositories under this parent folder ``` -------------------------------- ### FastAPI Application Setup with Redis Client Source: https://code.visualstudio.com/docs/python/tutorial-fastapi Initializes a FastAPI application and establishes a connection to a Redis server. Includes necessary imports. ```Python import redis from fastapi import FastAPI, HTTPException from models import ItemPayload app = FastAPI() redis_client = redis.StrictRedis(host="0.0.0.0", port=6379, db=0, decode_responses=True) ``` -------------------------------- ### Docker Compose for Python Debugging Source: https://code.visualstudio.com/docs/containers/docker-compose Sets up a Docker Compose service to run a Python application with the debugpy debugger attached. It installs debugpy, listens for client connections, and starts the application server. ```YAML version: '3.4' services: pythonsamplevscodedjangotutorial: image: pythonsamplevscodedjangotutorial build: context: . dockerfile: ./Dockerfile command: ["sh", "-c", "pip install debugpy -t /tmp && python /tmp/debugpy --wait-for-client --listen 0.0.0.0:5678 manage.py runserver 0.0.0.0:8000 --nothreading --noreload"] ports: - 8000:8000 - 5678:5678 ``` -------------------------------- ### Configuring launchSettings.json with multiple profiles Source: https://code.visualstudio.com/docs/csharp/debugger-settings This example demonstrates a `launchSettings.json` file for C# Dev Kit, showcasing how to configure different debugging profiles with various environment variables and application URLs. It includes settings for development, staging, and production environments, as well as IIS Express. ```json { "iisSettings": { "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { "applicationUrl": "http://localhost:59481", "sslPort": 44308 } }, "profiles": { "EnvironmentsSample": { "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, "applicationUrl": "https://localhost:7152;http://localhost:5105", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } }, "EnvironmentsSample-Staging": { "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, "applicationUrl": "https://localhost:7152;http://localhost:5105", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Staging", "ASPNETCORE_DETAILEDERRORS": "1", "ASPNETCORE_SHUTDOWNTIMEOUTSECONDS": "3" } }, "EnvironmentsSample-Production": { "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, "applicationUrl": "https://localhost:7152;http://localhost:5105", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Production" } }, "IIS Express": { "commandName": "IISExpress", "launchBrowser": true, "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } } } } ``` -------------------------------- ### Ask Prompt Example: Database Connection Configuration Source: https://code.visualstudio.com/docs/agents/agent-types/local-agents Use this prompt to ask 'Ask' about the location of the database connection configuration in a project. ```markdown Where is the db connection configured in this project? #codebase ``` -------------------------------- ### Nodemon Setup Configuration Source: https://code.visualstudio.com/docs/nodejs/nodejs-debugging Use this snippet with nodemon to automatically relaunch a debug session when source files change. Ensure nodemon is installed globally. Note that this only terminates the debugged program, not nodemon itself. ```JSON { "name": "Nodemon Setup", "type": "node", "request": "launch", "runtimeExecutable": "nodemon", "program": "${workspaceFolder}/yourProgram.js" } ``` -------------------------------- ### Workspace Launch Configuration Example Source: https://code.visualstudio.com/docs/editing/workspaces/multi-root-workspaces An example of a workspace-scoped launch configuration. Ensure all used variables are explicitly scoped to a specific folder for workspace validity. This configuration specifies the program location and files to skip during stepping. ```json "launch": { "configurations": [{"type": "node", "request": "launch", "name": "Launch test", "program": "${workspaceFolder:Program}/test.js", "skipFiles": [ "${workspaceFolder:Library}/out/**/*.js" ] }] } ```