IntelliJ IDEA 12.1.0 Web Help
Changing Indentation
Previous
|
Next
|
See Also
|
Shortcuts:
Default
GNOME
KDE
XWindow
Emacs
JBuilder
Visual Studio
NetBeans 6.5
Eclipse
Mac OS X 10.5+
Mac OS X
Mac OS X Eclipse
|
Comments
|
Get Printable
IntelliJ IDEA makes it possible to:
Indent or unindent
text. This action applies to a selection, or to a line at caret.
Choose
tabs or spaces
for indentation. This action applies to a selection, or the whole current file in the active editor.
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
Tab
Tab
Tab
Tab
Tab
Tab
Alt+Shift+Right
or
Tab
Tab
Tab
Tab
Tab
/
Shift+Tab
Shift+Tab
Shift+Tab
Shift+Tab
Shift+Tab
Shift+Tab
Shift+Tab
Alt+Shift+Left
or
Shift+Tab
Shift+Tab
Shift Tab
Shift Tab
Shift Tab
.
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:
Selecting Text in the Editor
Web Resources:
Knowledge Base