jbushmaster007 / anyedittools

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

Option when converting tabs to spaces to limit conversion to specifically replace 4 spaces with 1 tab, and not remove excess spaces remaining #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
For example, given the following code (assume -> and . are white space
markers):

else if ((some predicate) && 
.........(some other predicate))

would become

else if ((some predicate) && 
->  ->  .(some other predicate))

Original issue reported on code.google.com by rotty3...@gmail.com on 14 May 2009 at 2:14

GoogleCodeExporter commented 8 years ago
Can you reset this as a feature enhancement?

Thanks

Original comment by rotty3...@gmail.com on 14 May 2009 at 2:15

GoogleCodeExporter commented 8 years ago
Currently it works exactly like you request, so probably you have the Java 
Editor 
"on save" formatter enabled, which fixes identation too.

Closing as not a bug.

Original comment by iloveeclipse on 24 May 2009 at 11:46

GoogleCodeExporter commented 8 years ago
No matter what settings I try, I cannot make it preserve the spaces.

I have no "on save" specificed in either general preferences or project specific
preferences.

Eclipse Version: 3.4.2
Build id: M20090211-1700

Thanks

Original comment by rotty3...@gmail.com on 24 May 2009 at 4:45

GoogleCodeExporter commented 8 years ago
I figured it out! I had to actually configure the formatter to use "tabs only 
for
leading indentations". Enable it, remove other formatting rules I didn't want.

Then AnyEdit handled the convert spaces to tabs as I wanted.

Thanks

Original comment by rotty3...@gmail.com on 24 May 2009 at 5:50