如何配置PhpStorm打开外部文档,即devdocs.io [英] How to configure PhpStorm to open external documentation, namely devdocs.io

查看:121
本文介绍了如何配置PhpStorm打开外部文档,即devdocs.io的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找要打开的插件/设置 http://devdocs.io (devdocs.io/#q=keyword)和当前选定的文本.类似于googleit插件 https://plugins.jetbrains.com/plugin/7402?pr= phpStorm ,但具有可配置的网址...

I am looking for a plugin/settings to open http://devdocs.io (devdocs.io/#q=keyword) with currently selected text. Something similar to googleit plugin https://plugins.jetbrains.com/plugin/7402?pr=phpStorm, but with configurable url...

推荐答案

您可以使用想法是启动您的应用程序/脚本,该应用程序/脚本将在网络浏览器中打开此类URL.

The idea is to launch your app/script that will open such URL in a web browser.

如何完成此操作取决于您的操作系统和所使用的工具.这是在Windows操作系统上实现的方式( URL将在默认的网络浏览器中打开):

How it can be done depends on your OS and tools you have got there. This is how it can be implemented on Windows OS (URL will be opened in your default web browser):

创建了此类外部工具条目后,它就可以工作了,可以选择分配自定义快捷方式.可以在Settings/Preferences | Keymap处完成-在External Tools分支下查找该条目:

After you have create such external tool entry and it's working you can optionally assign custom shortcut. This can be done at Settings/Preferences | Keymap -- look for that entry under External Tools branch:

注意: 请注意,如果选择包含空格,则该搜索将部分失败,因为空格将不会被编码为Web安全+字符(或%20)-在这种情况下,您将必须编写将执行以下操作的shell/批处理脚本转换,然后打开此类最终到达网址.

NOTE: Please note that if selection contains spaces then such search will partially fail as spaces will not be encoded into web safe + character (or %20) -- for such cases you will have to write shell/batch script that would perform such conversion and only then open such final URL.

这篇关于如何配置PhpStorm打开外部文档,即devdocs.io的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆