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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Go to Edit | Convert Indents , and then choose To Spaces or To Tabs respectively. It's in the documentation: Changing identation
回答2:
Replace only tabs used for indentation
- Ctrl + Shift + A
type "To Spaces" > Enter
Replace all tabs
- Ctrl + R
- check Regex
- Enter \t and spaces
Replace all