I develop web project. Server is node.js application written in TypeScript. Client also written in Typescript. I need two ability:
How can I do this?
To open a second instance of the integrated development environment (IDE), right-click on the Visual Studio icon in your dock or Applications folder, and select New Instance.
Ctrl + Shift + N will open a new window, while Ctrl + K then releases the keys, and pressing O would open the current tab in a new window. You can then use menu File → Open Folder to have two instances of Visual Studio Code with different folders in each window. ⌘ + Shift + N and ⌘ + K for Mac.
Launch VS Code and press the “Ctrl” and “P” keys simultaneously to search for a file to open in the current project. Type in the file name. To open the new file in a temporary tab, click on it once. To open the new file in a separate window that you can choose to close manually, double-click it.
See our documentation on multitarget debugging: https://code.visualstudio.com/Docs/editor/debugging#_multitarget-debugging
In your launch.json
, just create a compounds
section that contains the targets you want to debug
{ "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "Server", "program": "${workspaceRoot}/server.js", "cwd": "${workspaceRoot}" }, { "type": "node", "request": "launch", "name": "Client", "program": "${workspaceRoot}/client.js", "cwd": "${workspaceRoot}" } ], "compounds": [ { "name": "Server/Client", "configurations": ["Server", "Client"] } ] }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With