“添加为链接"在Netbeans中?

编程入门 行业动态 更新时间:2024-10-27 16:35:38
本文介绍了“添加为链接"在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中?

本文发布于:2023-11-15 17:42:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1596599.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:链接   quot   Netbeans

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!