gpt4 book ai didi

ide - 如果在默认缩进级别按下退格键,则 PHPStorm 删除行

转载 作者:行者123 更新时间:2023-12-04 12:20:18 24 4
gpt4 key购买 nike

从 7.x 升级到 8.x 后,我注意到一个令人讨厌的新“功能”。当在一个空行上时(按回车键后),然后按退格键(用来去掉插入符号前面的缩进字符),该行被删除,插入符号跳回到上面一行的末尾。

鉴于以下代码片段和插入符号位置:



按 Backspace 执行以下操作:



我如何关闭它?

最佳答案

从 PhpStorm 9+ 开始,此设置位于 Editor > General > Smart Keys > Backspace 下的它自己的部分中.设置 Unindent下拉至 Disabled会给你你期望的行为。

Editor > General > Smart Keys > Backspace > Unindent

解决方案是通过转到 File > Settings 来禁用“Backspace smart indent”。 (或按CtrlAltS)然后

  • 导航至 IDE Settings > Editor > Smart Keys
  • 搜索 Backspace smart indent

  • 并从所述选项旁边的复选框中删除勾号。

    IDE Settings > Editor > Smart Keys > Backspace smart indent

    关于ide - 如果在默认缩进级别按下退格键,则 PHPStorm 删除行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28261527/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com