emacs c语言 空格_用Emacs中的空格替换选项卡

emacs c语言 空格

How to replace tabs with spaces in Emacs?

如何在Emacs中用空格替换制表符?

You can first select the regions of text for converting/replacing, then run

您可以先选择要转换/替换的文本区域,然后运行

M-x untabify

to replace all tabs with appropriate number of spaces.

用适当数量的空格替换所有选项卡。

There is also a M-x tabify for replacing sequences of spaces to tabs.

还有一个Mx tabify用于替换制表符中的空格序列。

There are also commands to convert tabs to spaces or vice versa, always preserving the columns of all non-whitespace text. M-x tabify scans the region for sequences of spaces, and converts sequences of at least two spaces to tabs if that can be done without changing indentation. M-x untabify changes all tabs in the region to appropriate numbers of spaces.

还有一些命令可以制表符转换为空格,反之亦然,这些命令始终保留所有非空白文本的列。 Mx tabify扫描区域中的空格序列,并将至少两个空格的序列转换为制表符(如果可以这样做,而无需更改缩进)。 Mx untabify会将区域中的所有选项卡更改为适当数量的空格。

Reference: GNU Emacs Manual.

参考GNU Emacs手册

Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。

翻译自: https://www.systutorials.com/replacing-tabs-with-spaces-in-emacs/

emacs c语言 空格

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值