如何(在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中?
发布评论