4 Star 9 Fork 1

Eno / search-online

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 6.23 KB
一键复制 编辑 原始数据 按行查看 历史
wscats 提交于 2020-12-02 13:35 . add team

Feature

Download Macketplace Github Page Eno Yao

English | 中文

A simple extension for VSCode to search or translate online easily using different engine.

How To Use

Search

You can select a keyword in the code, right-click to open the drop-down menu, select Search Online, it will automatically open the browser for you and search for related content.

Or select a keyword in the code, use the shortcut key cmd+enter(mac) / ctrl+enter(win) to open the browser search results.

2

Translate

You can select a keyword in the code, right-click the drop-down menu and select Traslate Online, it will automatically open the browser and use Google Translate to help you translate the content.

Or select a keyword in the code, use the shortcut key cmd+shift+enter(mac) / ctrl+shift+enter(win) to translate the content.

1

Support offline dictionary search, select keywords in the code, the translation results will appear in the lower right corner of the bottom bar, if you want to view more detailed translation results, you can click the chinese translation results in the lower right corner of the bottom bar, and your default browser for online translation.

8

Switch Search Engine

You can switch between different search engines according to your needs, just click Search Engine in the bottom bar of vscode, and you can switch search engines. Google search used by the search engine by default.

3

Or, you can right-click to open the drop-down menu after selecting the keywords, and click Search Online By Switch Engine, you can switch the engine to search results.

4

If necessary, you can change the request address of the search engine.

5

The default request address format for each search is as follows. Note that the keywords searched in the link use %SELECTION% instead.

Engine Url
Google https://www.google.com/search?q=%SELECTION%
Bing https://www.bing.com/search?q=%SELECTION%
Github https://www.github.com/search?q=%SELECTION%
Baidu https://www.baidu.com/search?q=%SELECTION%
Npm https://www.npmjs.com/search?q=%SELECTION%
Yahoo https://search.yahoo.com/search?p=%SELECTION%
Wiki https://wikipedia.org/wiki/%SELECTION%
Duck https://duckduckgo.com/?q=%SELECTION%
Code Pen https://codepen.io/search/pens?q=%SELECTION%
Code Sandbox https://codesandbox.io/search?query=%SELECTION%

Or modify the .vscode/setting.json file to change the default search engine. For example, modify to the following configuration, then every time you click on Search Online, you will use Bing to search for related content.

{
  "search-online.search-engine": "Bing"
}

Or modify the .vscode/setting.json file to add a new search engine. For example, by modifying .vscode/setting.json below, two new search engines, Visual Studio Marketplace and Pypi, are added.

{
  "search-online.add-search-engine": [
    {
      "name": "Visual Studio Marketplace",
      "url": "https://marketplace.visualstudio.com/search?term=%SELECTION%&target=VSCode"
    },
    {
      "name": "Pypi",
      "url": "https://pypi.org/search/?q=%SELECTION%"
    }
  ]
}

You can also use the add search engine option to manually add a search engine, you need to provide the name and search address, for example↓.

name: Visual Studio Marketplace

url: https://marketplace.visualstudio.com/search?term=%SELECTION%&target=VSCode

6

Switch Language Engine

You can change the translation language configuration item of the extension to help you translate different texts.

7

Thanks

Development Team


Eno Yao

中文编程

If the extension can help you, please enter the Rating & Review link to give me a five-star praise.

If you have any questions or suggestions during use, please leave a message in the issue.

TypeScript
1
https://gitee.com/wscats/search-online.git
git@gitee.com:wscats/search-online.git
wscats
search-online
search-online
master

搜索帮助