Ole*_*nyk 5 plugins notepad++ google-search
我想知道是否有 Notepad++ 插件在 NP++ 上下文菜单中添加了“Google 搜索”行(鼠标右键单击),以便我可以突出显示一些文本,然后右键单击它,选择“在 Google 中搜索”和用搜索页面打开的网络浏览器?
实现您想要的一种方法是...使用 Notepad++ 插件 - NPPExec(链接到插件)。您也可以通过 Notepad++ “插件管理器”插件获取。
安装它并按 F6 或从菜单中选择。请参阅菜单中的 NPPExec。在出现的框中写入以下命令。然后你可以保存它。
"C:\Users\YOURNAME\AppData\Local\Google\Chrome\Application\chrome.exe" http://www.google.com/search?q=$(CURRENT_WORD)
Run Code Online (Sandbox Code Playgroud)
所选词将映射到 CURRENT_WORD。我已经用 Chrome 显示了。您也可以使用其他网络浏览器。
小智 7
我参加聚会有点晚了,但此功能已经可用并且已经有一段时间了。我目前正在使用 NP++ 6.4.5。转到设置 -> 编辑上下文弹出菜单。点击ok出现如下提示:
Editing contextMenu.xml allows you to modify your Notepad++ popup context menu.
You have to restart your Notepad++ to take effect after modifying contextMenu.xml.
Run Code Online (Sandbox Code Playgroud)
将以下行添加到该文件中您希望该选项在上下文菜单中显示的位置。
<Item MenuEntryName="Run" MenuItemName="Google Search"/>
Run Code Online (Sandbox Code Playgroud)
保存,重启 NP++,坐下来享受从 NP++ 搜索谷歌的乐趣