Emacs:插入选项卡而不是空格 [英] Emacs: Insert tab instead of spaces

查看:120
本文介绍了Emacs:插入选项卡而不是空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于几个原因,我喜欢在按 TAB 时配置我的编辑器来插入空格。

For several reasons I prefer to configure my editor to insert spaces when TAB is pressed.

但是最近我发现选项卡应该保留作为制作文件中的标签。

But recently I discovered that tabs should remain as tabs in make files.

如何插入标签( \t ,而不是),而不需要在编写make文件时重新配置编辑器?

How do I insert tab (\t, not " ") without reconfiguring editors each time I need to write make files?

我使用以下编辑器:
Emacs 凯特 gedit Visual Studio 编辑器。

I use the following editors: Emacs, Kate, gedit, and the Visual Studio editor.

推荐答案

只要您在正确的位置按右键,Emacs的Makefile模式就可以处理插入标签和空格的位置。或者我错过了这个问题的一些细节。

Emacs' Makefile mode takes care of where to insert tabs and spaces as long as you press the right keys at the right places. Either that, or I missed some details in the question.

这篇关于Emacs:插入选项卡而不是空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆