Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert NOT LEADING tabs to spaces #84

Open
GoogleCodeExporter opened this issue Apr 19, 2015 · 4 comments
Open

Convert NOT LEADING tabs to spaces #84

GoogleCodeExporter opened this issue Apr 19, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 23 Sep 2013 at 4:17

@GoogleCodeExporter
Copy link
Author

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

  • Added labels: Priority-Low, Type-Enhancement
  • Removed labels: Priority-Medium, Type-Defect

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 24 Sep 2013 at 8:32

@GoogleCodeExporter
Copy link
Author

... 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 [email protected] on 24 Sep 2013 at 8:39

@GoogleCodeExporter
Copy link
Author

...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 [email protected] on 24 Sep 2013 at 8:47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants