dzdh
V2EX  ›  PHP

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

  •  
  •   dzdh · May 7, 2021 · 2371 views
    This topic created in 2007 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
    dzdh
    OP
    May 7, 2021❤️1
    1
    自问自答:

    安装中文语言包后。

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

    Code Generation | Comment Code

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

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