Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 gEdit 编辑 haml 文件,当我一行一行地编写时,自动缩进功能似乎起作用,但是当我去清除现有元素(div 或类)时,下面的其余代码不会自行调整。假设这是我的代码
.rightside .container %ul %li hello %li world
现在有什么方法(使用一些插件)当我删除 .rightside 时,其余代码向左移动两个空格?我现在必须手动擦除每一行的空间。感谢您的输入。
您可以选择相关标签下方的块并使用 Shift-Tab 或 Ctrl-Shift-T 取消缩进文本,假设您已将 gedit 设置为使用 2 个空格作为制表符。
我还安装了多编辑插件。这给了我多个插入符号,我所做的任何编辑都将被复制。在这种情况下,我可以将光标定位在该块的顶部,使用 Ctrl-PgDown 快捷键选择整个块,然后点击几次删除。