开发者

How to outdent a block with emacs?

I can use C-x TAB for indenting 1 column, or C-u N C-x TAB for N columns.

How can I `outdent' a开发者_如何学Python block with emacs?


You do the same, since C-x tab understands negative arguments.

So to outdent 3 columns:

C-u - 3 C-x TAB


In python mode, for a marked region you also use C-c-< to outdent and C-c-> to indent


Use rectangular operations. C-x r k - to kill a rectangle.


Just like you mention for indenting:

C-u N C-x TAB

Just use a negative N:

C-u -N C-x TAB

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜