0

我正在使用带有 emacs 的 slim 进行开发。我可以通过标记块然后按 Tab 来缩进细长代码块。

但是,我如何取消缩进整个块?任何帮助将不胜感激。

谢谢,穆尔塔

4

1 回答 1

1

Select the code block, then do C-u - 4 C-x TAB to unindent the marked region by 4 spaces.

  • C-u allows to specify a prefix argument to the following indent command
  • - 4 gives the amount of indentation (-4). Since the number is negative, you're indenting to the left.
  • C-x TAB indents the region by the given amount.

This answer might also be interesting to you: https://stackoverflow.com/a/11624677/261142

于 2012-08-23T05:22:30.900 回答