简体   繁体   English

HyperLink Sublime软件包可打开包含的PHP文件

[英]HyperLink Sublime Package to open included PHP file

I found this package useful to Quickly and easily jump between your files. 我发现此软件包对快速轻松地在文件之间跳转非常有用。 https://packagecontrol.io/packages/HyperClick https://packagecontrol.io/packages/HyperClick

But this package is only restricted to JS, Stylus and SASS files. 但是此程序包仅限于JS,Stylus和SASS文件。 Is there a package where I can have this feature to quickly switch between files in PHP Format too. 是否有一个软件包,在其中我可以使用此功能来快速切换PHP格式的文件。

Thank you. 谢谢。

Yes, there is goto-documentation . 是的,有goto-documentation This supports PHP as well 这也支持PHP

Update : 更新

It's not the documentation I need [...] If I click on xyz.php it has to open the file xyz.php in code editor 这不是我需要的文档[...]如果单击xyz.php,则必须在代码编辑器中打开文件xyz.php。

This use case is solved by Open-Include 此用例通过Open-Include解决

To install on OSX: 要在OSX上安装:

cd ~/Library/Application Support/Sublime Text 3/Packages
git clone https://github.com/titoBouzout/Open-Include.git

And restart sublime. 并重启崇高。 After that when you have include "xyz.php" you place your cursor within the string and hit cmd-D and it will open xyz.php. 之后,当您include "xyz.php" ,将光标放在字符串中,然后按cmd-D ,它将打开xyz.php。

Personally I use cmd-T and start typing the name for switching within files in the project 我个人使用cmd-T并开始输入用于在项目中的文件内切换的名称

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM