First, find the path of the firefox.exe and copy the folder where the exe is.
for instance, the path of the firefox.exe is D:\Program Files\Firefox\core\firefox.exe, so you copy D:\Program Files\Firefox\core
Second, open the environment variable configuration, select "path" item and click the edit button, then there will be a new window named "edit environment variable",select new button and paste the path of the folder(such as D:\Program Files\Firefox\core) into it without "". Then save.
restart VS code and try again. It works in my device.
I'm sorry if there are any grammatical mistakes, because I'm a Chinese and poor in English.
First, find the path of the firefox.exe and copy the folder where the exe is. for instance, the path of the firefox.exe is D:\Program Files\Firefox\core\firefox.exe, so you copy D:\Program Files\Firefox\core
Second, open the environment variable configuration, select "path" item and click the edit button, then there will be a new window named "edit environment variable",select new button and paste the path of the folder(such as D:\Program Files\Firefox\core) into it without "". Then save. restart VS code and try again. It works in my device.
I'm sorry if there are any grammatical mistakes, because I'm a Chinese and poor in English.