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

PHPStorm 的 Ctrl + / 的单行注释,只能顶头加嘛?

  •  
  •   dzdh · 2021-05-07 14:08:24 +08:00 · 1500 次点击
    这是一个创建于 1077 天前的主题,其中的信息可能已经有所发展或是发生改变。
    function x()
    {
    // < 直接顶这里了    $ctrl+/注释
        // $ctrl+/注释  <-怎么在缩进内进行注释
    }
    
    3 条回复    2021-05-08 10:37:12 +08:00
    dzdh
        1
    dzdh  
    OP
       2021-05-07 14:17:49 +08:00   ❤️ 1
    自问自答:

    安装中文语言包后。

    设置->编辑器->代码样式->PHP->代码生成->注释的代码。取消勾选。
    Rache1
        2
    Rache1  
       2021-05-08 10:34:30 +08:00
    File | Settings | Editor | Code Style | PHP

    Code Generation | Comment Code

    取消这两个的勾选,先写内容再按快捷键注释
    Rache1
        3
    Rache1  
       2021-05-08 10:37:12 +08:00   ❤️ 1
    File | Settings | Editor | Code Style | PHP

    Wrapping and Braces | Keep when reformatting | Comment at first column
    取消勾选
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1080 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 19:00 · PVG 03:00 · LAX 12:00 · JFK 15:00
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.