Show as tabs, save as spaces?
Show as tabs, save as spaces?
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?
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?
Could you explain how does this differ from the PSR-2 formatting we have by default in the PHP editor?
Kaloyan Raev
Zend Studio Team
Zend Studio Team
Re: Show as tabs, save as spaces?
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?
If this is possible in Eclipse, how?
Re: Show as tabs, save as spaces?
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.
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.
Kaloyan Raev
Zend Studio Team
Zend Studio Team
Re: Show as tabs, save as spaces?
Can anyone suggest me the best solution for this??
Re: Show as tabs, save as spaces?
I have the same problem, has it been solved?