Failed to install or open or update any extension in VSCode

There is a bad situation which you Cannot install any extensions on VSCode also trying to uninstall and re-install VSCode and not fixed, also Failed to Download it Manually.

The main problem is in the DNS server addresses.
**Here the steps to solve it:
**

  • Control Panel\Network and Internet\Network Connections
  • Change adapter setting
  • Right click on your WIFI network connection then properties
  • Internet protocol Version 4(TCP/IPv4)
  • Check the “ Use the following DNS server addresses ” option then write:
  • Preferred DNS server: 8.8.8.8
  • Alternate DNS server: 8.8.4.4
  • Internet protocol Version 6(TCP/IPv6)
  • Check the “ Use the following DNS server addresses ” option then write:
  • Preferred DNS server: 2001:4860:4860::8888
  • Alternate DNS server: 2001:4860:4860::8844
  • Disconnect your internet, and reconnect again
  • Congratulations, you can install any VSCode Extensions!
vscode#vscode