This is my first time installing and using VSCode, and when I try to install a python extension inside a VSCode application I get the error "Error While fetching extension. XHR failed" . How do I fix it? image
The problem usually occurs because of the proxy settings. try the following steps:
1.setting
2.proxy settings
3.Enable Detect automatically setting
4.restart
or
go to google search https://marketplace.visualstudio.com/ search for python then install python.