“Add as link” in Netbeans?

不羁的心 提交于 2019-12-13 21:17:54

问题


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

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

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.

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


回答1:


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.

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"

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).



来源:https://stackoverflow.com/questions/11395173/add-as-link-in-netbeans

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!