- Download and install OBS from OBS Download
- Disable Hardware Acceleration in Chrome
- Open Chrome - Settings - Search for Hardware Acceleration - Turn off 'Use hardware acceleration when available' - Relaunch Chrome
- Launch Code disabling GPU rendering
Start
> Run
> 'C:\Users\brett.miller\AppData\Local\Programs\Microsoft VS Code\Code.exe' --disable-gpu
or
Start-Process 'C:\Users\brett.miller\AppData\Local\Programs\Microsoft VS Code\Code.exe' -argumentList '--disable-gpu'
- Right Click in Sources
- Add > Window Capture
- Create New > Sensible Name e.g.: 'VsCode'
- Window dropdown
- Select relevant Window
If you're adding Desktop Capture and only see a black screen you will need to change the GPU OBS uses.
- Right Click Desktop
- Click NVIDIA Control Panel
- Manage 3D Settings
- Program Settings Tab
- Select Program to customise
- 'C:\Program Files\obs-studio\bin\64bit\obs64.exe'
- Select the preferred grapbics processor for this program
- I had to change to integrated graphics but you may have to select NVIDIA