A simple extension for VSCode to search or translate online easily using different engine.
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.
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.
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.
{
"search-online.show-status-bar": true
}
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.
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.
If necessary, you can change the request address of the search engine.
The default request address format for each search is as follows. Note that the keywords searched in the link use %SELECTION%
instead.
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
You can change the translation language configuration item of the extension to help you translate different texts.
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.