IntelliJ IDEA でタブを使用してインデントするにはどうすればいいですか? 質問する

IntelliJ IDEA でタブを使用してインデントするにはどうすればいいですか? 質問する

IntelliJ IDEA 11.0 でインデントに複数のスペースではなくタブを使用するにはどうすればよいですか?

「タブ文字を使用する」がありますchecked under "Code Style" > "General" > "Default Indent Options". And also tried to have "Smart tabs" checked, but it doesn't help.

From the documentation:

If this check box is selected, tab characters are used:

  • On pressing the Tab key
  • For indentation
  • For code reformatting

Otherwise, spaces are used instead of tabs.

ベストアンサー1

File > Settings > Editor > Code Style > Java > Tabs and Indents > Use tab character

Substitute weapon of choice for Java as required.

おすすめ記事