IntelliJ IDEA 14.0.0 Web Help

Changing Indentation

IntelliJ IDEA makes it possible to:

To change indentation of a text fragment, do one of the following

  • On the main menu, choose Edit | Indent Selection / Edit | Unindent Selection .
  • Press Tab / Shift+Tab.

To fix indentation

  1. Place the caret at a line with wrong indentation.
  2. Press Ctrl+Alt+I.

To toggle between tabs and spaces

  • On the main menu, choose Edit | Convert Indents , and then choose To Spaces or To Tabs respectively.

See Also

Getting Started:

Web Resources:

Last modified: 4 December 2014
comments powered by Disqus