dzdh
V2EX  ›  PHP

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

  •  
  •   dzdh · May 7, 2021 · 2072 views
    This topic created in 1840 days ago, the information mentioned may be changed or developed.
    function x()
    {
    // < 直接顶这里了    $ctrl+/注释
        // $ctrl+/注释  <-怎么在缩进内进行注释
    }
    
    3 replies    2021-05-08 10:37:12 +08:00
    dzdh
        1
    dzdh  
    OP
       May 7, 2021   ❤️ 1
    自问自答:

    安装中文语言包后。

    设置->编辑器->代码样式->PHP->代码生成->注释的代码。取消勾选。
    Rache1
        2
    Rache1  
       May 8, 2021
    File | Settings | Editor | Code Style | PHP

    Code Generation | Comment Code

    取消这两个的勾选,先写内容再按快捷键注释
    Rache1
        3
    Rache1  
       May 8, 2021   ❤️ 1
    File | Settings | Editor | Code Style | PHP

    Wrapping and Braces | Keep when reformatting | Comment at first column
    取消勾选
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1054 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 22:49 · PVG 06:49 · LAX 15:49 · JFK 18:49
    ♥ Do have faith in what you're doing.