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

后端 未结 2 1123
-上瘾入骨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

提交回复
热议问题