indent tabs are replaced by spaces

Hi,

I've just purchased a licence of phpStorm and i'm facing a dilemma that i can't figure out!

Despite enabling the Tabs in "Code Style" => "PHP" or "HTML" as explained here: https://intellij-support.jetbrains.com/hc/en-us/community/posts/207209645-How-can-I-use-real-tabs-not-spaces-, it still uses spaces :( how can i fix this?

Also, is there a way to activate the tabs for all languages instead of enabling it individually for each language?

 

thanks in advance

0
4 comments

Hi there,

Please provide code sample/screenshot (to see the context). It's possible that you have .editorconfig in your project and appropriate plugin installed and enabled -- in such case such setting will be taken from there if available. Show screenshot of your "Settings/Preferences | Editor | Code Style" page.

 

>Also, is there a way to activate the tabs for all languages instead of enabling it individually for each language?

Nope.

I believe it was possible really long time ago .. but there was a lot of confusion... so it's per-language only now.

.editorconfig file and appropriate plugin should solve it.

0
Avatar
Permanently deleted user

Thanks Andriy for your time and your message.

Well, somehow when I wanted to send you a screenshot, I realised that it's now working just fine. Thanks you very much.

I take this opportunity to ask you what is the "Smart tabs", didn't really get it!

0

>I take this opportunity to ask you what is the "Smart tabs", didn't really get it!

https://www.jetbrains.com/help/phpstorm/settings-code-style-tabs-and-indents-common.html

It has illustration that explains it.

If you need only tabs or spaces .. then better do not use it (as it will mix them).

0
Avatar
Permanently deleted user

OK, thank you very much. you have a lovely day and happy easter :)

0

Please sign in to leave a comment.