Page 1 of 1

Show as tabs, save as spaces?

Posted: Sat Feb 06, 2016 12:40 am
by dave7135
I want to be able to use tab indentation but save each tab as 4 spaces, and have each 4-space indent display and be usable as a tab.

Re: Show as tabs, save as spaces?

Posted: Mon Feb 08, 2016 12:50 pm
by kaloyan_r
I am not sure I understand you.

Could you explain how does this differ from the PSR-2 formatting we have by default in the PHP editor?

Re: Show as tabs, save as spaces?

Posted: Fri Jun 16, 2017 5:06 pm
by dave7135
When I load a file, if it has 4-space indents, I want them to behave like tabs (so that if I hit the left/right arrow keys across those 4 spaces, it moves the cursor 4 spaces as if it's a tab, or at least goes to the beginning or end of the indent), but save as 4 spaces.

If this is possible in Eclipse, how?

Re: Show as tabs, save as spaces?

Posted: Fri Jun 23, 2017 3:40 pm
by kaloyan_r
If you hit the Home keyboard button, the cursor will go to the beginning of the line (column 0). Hitting Home again, moves the cursor to the end of the indentation (beginning of the actual code on the line). Hitting Home again moves the cursor to column 0 and so on...

Also try keeping Ctrl pressed while hitting Left and Right arrow keys. This will move the cursor at the beginning and at the end of the indentation.

Re: Show as tabs, save as spaces?

Posted: Thu Aug 31, 2017 7:36 am
by tutu304
Can anyone suggest me the best solution for this??

Re: Show as tabs, save as spaces?

Posted: Mon Oct 02, 2017 10:27 am
by jose5093
I have the same problem, has it been solved?