如何向 PHP 项目添加外部依赖项? [英] How to add External Dependencies to a PHP project?

查看:51
本文介绍了如何向 PHP 项目添加外部依赖项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 PHP 项目中试用 VSCode 时,我找不到允许我添加外部库并根据包含的代码显示任何自动完成提示的选项/设置/扩展.这个特性在 PHPStorm 中是开箱即用的.

While trying out the VSCode on my PHP projects, I couldn't find an option/setting/extension that would allow me to add an external library and show any autocomplete tips based on the included code. This feature is present in PHPStorm out of the box.

是我遗漏了什么还是 VSCode 真的不支持这个?

Am I missing something or VSCode really doesn't support this yet?

推荐答案

要添加外部依赖项,您可以使用 VSCode 多根工作区功能.

To add an external dependency you can use the VSCode multiroot workspace feature.

文件">将文件夹添加到工作区..."命令会打开一个打开的文件夹对话框以选择新文件夹.

The File > Add Folder to Workspace... command brings up an Open Folder dialog to select the new folder.

https://code.visualstudio.com/docs/editor/multi-root-workspaces#_adding-folders

这篇关于如何向 PHP 项目添加外部依赖项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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