如何用intellij中的空格序列替换文件中的所有制表符? [英] How to replace all tab characters in a file by sequences of white-spaces in intellij?

查看:2386
本文介绍了如何用intellij中的空格序列替换文件中的所有制表符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中给出一个文件,我希望能够用空格替换文件中的所有制表符。在intellij有什么办法吗?

Given a file in my project, I want to be able to replace all of the tab characters in the file with white spaces. Is there any way to do this in intellij?

推荐答案

转到编辑|转换缩进,然后分别选择To Spaces或To Tabs。它位于文档中:更改身份

Go to Edit | Convert Indents , and then choose To Spaces or To Tabs respectively. It's in the documentation: Changing identation

这篇关于如何用intellij中的空格序列替换文件中的所有制表符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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