VS2017 set chrome browser google search currently selected text

Note: Environment VS2017 Community Edition, browser google chrome browser

1. Open VS2017, the interface is as follows, click the Tools menu

2. Click External Tools in the menu, as shown below

3. The following window will pop up, click the Add button in the upper right corner, as shown below

4. You can name the title according to your preference. I named it chrome. The command fills in the full path of the google browser executable program, such as "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe";

Fill in the parameters as follows (use google to search for the currently selected content in the following page):

-app="https://www.google.com/search?q=$(CurText)&sitesearch=man7.org%2Flinux%2Fman-pages&sa=Search+online+pages"

5. Click the Apply button in the lower right corner to complete the setting.

6. When using, double-click to select a keyword in the code window, click chrome in the tool menu, and the chrome browser will pop up and display the searched content.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324361852&siteId=291194637