Align to tab columns doesnt work when you convert tabs to spaces [message #810575] |
Thu, 01 March 2012 04:15  |
Eclipse User |
|
|
|
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
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03844 seconds