开发者

How to outdent a block with emacs?

开发者 https://www.devze.com 2023-01-12 17:36 出处:网络
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.

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

精彩评论

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