“添加为链接"在Netbeans中? [英] "Add as link" in Netbeans?

查看:106
本文介绍了“添加为链接"在Netbeans中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何(在Netbeans IDE中)将文件添加为链接,或指向现有文件,就像快捷方式一样?

How can I (in the Netbeans IDE) add files as links, or point to existing files, kind of like a shortcut?

Visual Studio 2012可以做到这一点,如以下屏幕截图所示(在Google Images上找到-不是我的).

Visual Studio 2012 can do this, as shown in the following screenshot (found on Google Images - not mine).

我在Netbeans中错过了此功能.一直不能复制文件,因为我不断改进我的PHP库文件,这些文件可在所有其他项目中使用.

I miss this feature in Netbeans. Copying my files over all the time is not an option, since I constantly improve my PHP library files, that are used across all other projects.

我正在使用完整版的Netbeans,在这种情况下,我正在进行PHP开发.

I am using the full version of Netbeans, and in this case, I am doing PHP development.

推荐答案

我不确定PHP是否应该那样工作,因为未编译其代码. 我可能完全错了,如果是的话,我敢肯定会有其他人对我们俩进行教育.

I am not sure that PHP is supposed to work like that, since its code is not compiled. I could be completely wrong, and if I am, I'm sure someone else will educate us both.

我通常要做的是将库放置在某个目录中,然后通过将其添加到php.ini中将该目录添加到PHP的包含路径中:

What I've usually done is put the library in some directory and then add that directory to PHP's include path by adding this to php.ini:

include_path = "dir to your library"

然后,我要确保我正在使用的任何类自动加载器都在通过include路径进行浏览.

And then I'd make sure that whatever class autoloader I was using was looking through the include path.

也就是说,我最近已经放弃了这一点,因为一个变化频繁的全局库经常给我带来麻烦(更改会破坏某些东西和类似的问题).

That said, I've more recently moved away from this, because a global library that changes often has caused me problems (a change would break something and similar issues).

这篇关于“添加为链接"在Netbeans中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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