Shortcut for changing tabs->spaces->tabs in IntelliJ IDEA

To toggle between tabs and spaces:

On the main menu, choose Edit → Convert Indents, and then choose To Spaces or To Tabs respectively. Read more about Changing Indentation.

You can quickly do the same with Navigating to Action menu by pressing Ctrl+Shift+A and type convert indents in the field:

enter image description here

If you want to set spaces indents by default, go to Settings → Editor → Code Style → Java, make sure the Use tab character checkbox is unchecked and set the Indent value:

enter image description here

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)