Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PDT » Align to tab columns doesnt work when you convert tabs to spaces
Align to tab columns doesnt work when you convert tabs to spaces [message #810575] Thu, 01 March 2012 04:15 Go to previous message
Derek Wallace is currently offline Derek Wallace
Messages: 5
Registered: March 2012
Junior Member
Hi,
This is how many other editors work.
0. set tab size to 3 chars.
1. setup to convert tabs to spaces
2. Hitting Tab will jump to the tab column (and then replace tab with required spaces)
So if a tab is 3 chars then hitting tab will always bring you to to column 4,7,10,13 etc., This makes it easy to align text.
If im on column 1 and i hit tab i jump to column 4 and 3 spaces inserted
if im on column 2 and i hit tab i jump to column 4 and 2 spaces inserted

With this setup its easy to convert

$sVar = "0";
$sVarLongName = "1";

to

$sVar = "0";
$sVarLongName = "1";

Put cursor at "=" and hit tab a few times.


With eclipse the behaviour is different.
0. set tab size to 3 chars.
1. setup to convert tabs to spaces
2. Hitting tab will ALWAYS insert 3 spaces. There is NO alignment to tab columns.

In Eclipse the above is painful. You end up having to insert spaces to do it.


Any ideas if there is a plugin that can help?

Thx
Derek


 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Zend debugger in Eclipse on OS X 10.7
Next Topic:what repository for RSE User actions?
Goto Forum:
  


Current Time: Tue May 21 13:59:09 EDT 2013

Powered by FUDForum. Page generated in 0.01690 seconds