dozug64282 2018-11-14 18:40
浏览 95

Intellij IDEA - 使用::和 - >后面有空格的PHP触发代码建议?

Am using Intellij IDEA for my PHP code but am having some issues with the code suggestion.

If I use the double colon or arrow without a space after them, then code suggestions work fine.

$animal ->
$animal ::

However I like to add spacing before and after those operators, but Intellij IDEA doesn't detect the space after the operator, so I get no suggestions.

Is there a way to change this behavior?

  • 写回答

1条回答

  • douchuose2514 2018-11-15 11:08
    关注

    It seems to work with -> by default. It also works with non-static methods after :: for no reason.

    This behavior is not configurable, so you'll have to submit a usability issue.

    评论

报告相同问题?

悬赏问题

  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
  • ¥15 教务系统账号被盗号如何追溯设备
  • ¥20 delta降尺度方法,未来数据怎么降尺度
  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效