How to replace all tab characters in a file by sequences of white-spaces in intellij?

后端 未结 2 1122
-上瘾入骨i
-上瘾入骨i 2021-01-31 01:27

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?

相关标签:
2条回答
  • 2021-01-31 02:04

    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

    0 讨论(0)
  • 2021-01-31 02:13

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

    0 讨论(0)
提交回复
热议问题