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.
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.