Tip for Really Really Lazy People: Search Google from NetBeans
By Geertjan-Oracle on Jun 21, 2005
- Use your mouse to select the code you'd like to google:
- Choose File > Print to HTML from the main menu:
I only found out about the above menu item quite recently. I'm sure there are quite a few interesting uses for it.
- Select everything in the dialog box:
- When you click OK, the selected code opens in a browser. Now make another selection within the code that you previously selected and then right-click anywhere:
Notice the "Web Search for" item in the menu? That's pretty cool. So select that and Google opens (at least, it does for me, maybe a different Search Engine is chosen depending on something or other on your own system) and the selected code ends up in the Search area.
Now all you've got to do is click Search and Google will find info on whatever the code was that you were having problems with...