建议变量列表 - php
Aptana 3,在 MAC OS X 10.6.x 上使用 MAMP 本地服务器。 编码 PHP 我的项目中有多个文件,并在多个文件中使用相同的变量。转到键入 $,然后想要查看提案列表,其中包括我键入的项目所有文件中的变量。
假设文件“A”有 var $bob,我开始在文件“B”中编码。我输入 $b 并且列表没有显示 $bob 作为可能选择的变量的建议。
Netbeans 有这种行为,但 Aptana 和带有 PHP 插件的 Eclipse 显然也没有。
我缺少什么?这是“按设计”的行为,还是我没有正确配置某些内容?
谢谢,
-约翰
Aptana 3, on MAC OS X 10.6.x using a MAMP local server.
Coding php
I have several files in the project and using the same variables in several files. Go to type $ and then want to see a list of proposals that includes the variables in all the files of the project as I type.
Say file "A" has the var $bob and I start coding in file "B". I type $b and the list does not show $bob as a proposal of possible vars to select.
Netbeans has this behavior, but Aptana and apparently, Eclipse with the PHP plugin does not either.
What am I missing? Is this a "as designed" behavior, or am I not configuring something correctly?
Thanks,
-John
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我刚刚尝试过,它对我有用(使用最新的 Aptana Studio 3,每晚构建)。
我创建了一个文件 a.php 并向其中添加了
$bob=1;
。然后创建 b.php 并在输入$b
时获得$bob
的代码帮助。由于我负责开发
PHP
编辑器,因此我确信我们不会将代码辅助限制为当前编辑的模块。我们允许来自项目中其他资源的提案(或通过“PHP Buildpath”(在项目属性中)的任何其他附加资源)。尝试清理您的项目,因为可能会发生损坏索引的情况 - 执行项目 ->清理并选择“全部清理”。
此外,单击“帮助”->“Aptana Studio”->“查看日志文件”并在编辑器中保持日志打开状态。然后再回到日志查看如果有任何新错误,
请告诉我您是否仍然遇到此问题。
干杯!
I just tried it, and it works for me (using the latest Aptana Studio 3, nightly build).
I've created a file a.php and added a
$bob=1;
to it. Then created b.php and got the code assist for$bob
when I typed$b
.Since I'm in charge of developing the
PHP
editor, I know for sure that we don't limit the code assist to the currently edited module. We allow proposals from other resources in the project (or any other attached resource through the 'PHP Buildpath' (in the project properties).Try to clean your project, as something may have happen to corrupt the index - Do a Project -> Clean and select 'Clean All'. This will re-build the PHP index from scratch.
Also, click Help->Aptana Studio -> View Log File and keep the log open in the editor. Try to trigger the code assist and then go back to the log to see if there are any new errors.
Let me know if you still have this issue.
Cheers!