【问题标题】:JetBrains IDEs code completion with . (dot)JetBrains IDEs 代码完成与 . (点)
【发布时间】:2018-08-17 19:36:44
【问题描述】:

JetBrains IDE(现在使用 PhpStorm 检查)不以点结尾。例如,我输入win 并输入.,它变成win.,而我希望它完成windows.。例如,在 R# 中,它完成了我想要的方式。

【问题讨论】:

  • 在 PHP 中,. 是连接符号 .. 它可能会造成“误报”情况。但是,如果您确定自己的选择 - 只需在设置中启用它 (Settings/Preferences | Editor | General | Code Completion | Insert selected suggestion by pressing space, dot, or other context-dependent keys)
  • @LazyOne 谢谢。发布它作为答案,所以我会选择它。

标签: phpstorm jetbrains-ide


【解决方案1】:

此选项在 PhpStorm 中默认禁用。它在引入时是自动启用的……但根据最初的反馈,它决定默认禁用它。

无论如何:

  1. Settings/Preferences
  2. Editor | General | Code Completion
  3. Insert selected suggestion by pressing space, dot, or other context-dependent keys

【讨论】:

    猜你喜欢
    • 2019-01-16
    • 1970-01-01
    • 2015-01-07
    • 2011-05-04
    • 2015-11-14
    • 1970-01-01
    • 2015-02-01
    • 2011-04-20
    • 2011-06-16
    相关资源
    最近更新 更多