tweezy23 / anyedittools

Automatically exported from code.google.com/p/anyedittools
2 stars 0 forks source link

Convert NOT LEADING tabs to spaces #84

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Could you please add the feature "convert NOT LEADING tabs to spaces"
To retain leading tabs as is, but the rest were converted

Original issue reported on code.google.com by zuro...@gmail.com on 23 Sep 2013 at 4:17

GoogleCodeExporter commented 9 years ago
I honestly don't know why this should be of benefit for anyone?
The use case is probably of interest for a very small user group, so I do not 
plan to work on it. Of course qualified patches are welcome.

BTW you can do this by using regular expressions in standard Eclipse text 
editor.
Regards,
Andrey

Original comment by iloveeclipse on 23 Sep 2013 at 5:50

GoogleCodeExporter commented 9 years ago
Unfortunatly this is StyleGuide requirement in my project - use tabs for indent 
only and spaces can not be used for this purpose.

In other cases, the tabs must be replaced with spaces

Original comment by zuro...@gmail.com on 24 Sep 2013 at 8:32

GoogleCodeExporter commented 9 years ago
... and I don't think it's possible with regular expressions
At least it's not so easy as it's looks like

Original comment by zuro...@gmail.com on 24 Sep 2013 at 8:39

GoogleCodeExporter commented 9 years ago
...the sample (the leading tabs should stay untouched and take into account 
that width of tab depends on it's position)
\tAAAA\t=\t\tBBBBB;
\t\tAAAA\t=\t\tBBBBB;

Original comment by zuro...@gmail.com on 24 Sep 2013 at 8:47