V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
gouchaoer2
V2EX  ›  PHP

VS Code 写 PHP 选中变量的时候怎么把$也带上,以及 typehint 怎么没有常量

  •  
  •   gouchaoer2 · 2018-12-24 10:36:59 +08:00 · 4407 次点击
    这是一个创建于 1921 天前的主题,其中的信息可能已经有所发展或是发生改变。

    RT,有什么办法能解决这 2 个问题么?

    4 条回复    2018-12-24 15:53:17 +08:00
    vibbow
        1
    vibbow  
       2018-12-24 10:46:15 +08:00   ❤️ 2
    第一个问题的解决问题:
    首选项 -> 设置 -> Word Separators -> 把其中的 $ 删掉

    第二个问题:
    装 PHP 插件可破
    gouchaoer2
        2
    gouchaoer2  
    OP
       2018-12-24 13:51:48 +08:00
    @vibbow 什么插件丫,沟槽不懂
    szopen
        3
    szopen  
       2018-12-24 14:15:28 +08:00
    @gouchaoer2 PHP Intelephense 插件可显示常量
    gouchaoer2
        4
    gouchaoer2  
    OP
       2018-12-24 15:53:17 +08:00
    @szopen 3q
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   960 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 21:45 · PVG 05:45 · LAX 14:45 · JFK 17:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.