0

Just trying to use tab-indentation on Android Studio 2.2.2

I followed the instructions I found on this thread:

Android Studio "This file is indented with tabs instead of 4 spaces"

But these instructions work only for new documents I create after setting that configuration but for previously created documents the space-indentation persists.

How can I configure all the files on my project to tab-indentation? for files before and after the tab-indentation configuration on the link above?

Community
  • 1
  • 1
Angel
  • 611
  • 2
  • 10
  • 18

1 Answers1

2

After changing the settings you have to reformat your codes, you can do this one by one by opening the file and pressing (Command + Option + L) shortcut or right click on your src folder and selecting Reformat Code option: Reformat Code menu

You can check the result by selecting View -> Active Editor -> Show Whitespaces from the menu: show Whitespaces menu

which would be something like this: Tabbed code sample

Mohsen Mirhoseini
  • 8,454
  • 5
  • 34
  • 59