Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Vscode prompt what to do if the chrome browser cannot be found

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail what to do if the vscode prompt can not find the chrome browser. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Because chrome installation does not choose the installation path like other software installers, etc., but installs Chrome directly in the current user directory. If you move the installation location of Chrome, there will be the problem that windows can't find Chrome.

You can solve this problem by configuring the tasks.json file.

The specific methods are as follows:

1. Press ctrl+shift+p to open the command panel, type Configure Task, and then operate in turn

2. Then click the last one to open the file and enter the tasks.json. We can see that the default configuration is as follows:

{/ / See https://go.microsoft.com/fwlink/?LinkId=733558 / / for the documentation about the tasks.json format "version": "2.0.0", "tasks": [{"label": "echo", "type": "shell", "command": "echo Hello"}]}

We need to modify this code as follows:

{/ / See https://go.microsoft.com/fwlink/?LinkId=733558 / / for the documentation about the tasks.json format "version": "2.0.0", "tasks": [{"label": "Run HTML file with Chrome", "type": "process", "command": "chrome", "args": ["${file}"] "windows": {/ / write here the installation location of your computer's Chrome browser "command": "C:/Program Files (x86) / Google/Chrome/Application/chrome.exe"}, "group": {"kind": "build" "isDefault": true}]}

After saving, open the file and press Ctrl+Shift+B to open the browser.

This is the end of the article on "vscode tips what to do if you can't find a chrome browser". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report