본문 바로가기

English Articles

How to insert 'google search option' in context menu of VSCode? Use VSCode extension

I wanted to get context menu option which is similar in chrome. This option means like Search Google for 'dragged texts'

The reason is, I did not want to copy and paste my code to a web-browser anymore. It is a hassle.

 

To get what I wanted, I googled but got only some old results. My environment is Windows11 and VSCode 2023 version.

This is the old one.

https://stackoverflow.com/questions/31899775/how-to-google-from-the-context-menu-of-the-visual-studio-2015-code-editor

 

How to google from the context menu of the Visual Studio 2015 code editor

how can I modify Visual Studio 2015 to be able to search the internet (my fav search engine happens to be google) from the context menu in the code editor? Ideally, I would like it to open as a ne...

stackoverflow.com

 

The recent solution is, to use VSCode extension which includes the option. There are some extentions but I installed this.

 

Now you can just drag texts, then open context menu(ususally right-click), click 'Google this'. It will automatically open a web-browser with searched result.