Search code examples
intellij-ideaindentationcode-formatting

How to replace all tab characters in a file by sequences of white-spaces in 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?


Solution

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