dzdh
V2EX  ›  PHP

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

  •  
  •   dzdh · May 7, 2021 · 2076 views
    This topic created in 1842 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   ·   2846 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 06:03 · PVG 14:03 · LAX 23:03 · JFK 02:03
    ♥ Do have faith in what you're doing.