I have a workspace open in VS Code with multiple nested subdirectories for different projects. When I go to the Debugging Run in the sidebar and click on create a launch.json file a popup prompt appears to Select a workspace folder to create a launch.json file in or add it to the workspace config file with the options in the dropdown being the 1. current open workspace 2. workspace. When I select (1) and add the required configurations to the launch.json file the .vscode/launch.json is located in the root directory of the workspace and NOT the root directory of the project (in this case a React Native project) and when running the debugger I get the following error:
An error occurred while attaching debugger to the application. Seems to be that you are trying to debug from within directory that is not a React Native project root. If so, please, follow these instructions: https://github.com/microsoft/vscode-react-native#customization (error code 604) (error code 1410)
How can I configure the launch.json file for a specific project in a VS Code workspace, rather than for the entire workspace?

.vscodefolder in each project manually, and add yourlaunch.jsonthere for each project. Perhaps I misunderstand your question though?workspace_dir/project_dir/.vscode/launch.jsonfile.vscodein a subfolder is not recognized by VSC. Use MultiRoot Workspace