Menu

#94 Change tabs to spaces (but nothing else) with Astyle

None
open
nobody
None
2018-01-29
2015-05-24
No

I want to change tabs to spaces in my source files with:

astyle -s 2 -r '.cpp' '.hpp'

But that changes the formatting as well - curly braces etc.

How do I use astyle to only convert indentation tabs to spaces ?

Thanks in advance

Discussion

  • Jim Pattee

    Jim Pattee - 2015-05-25

    <html><head></head><body>

    The "Quick Start" information in the documentation has more options you can try.

    But you are probably not going to be able to change just the indent and nothing else.
    There are some text editors that can do this.
     
    Jim Pattee
    jimp03@email.com
     
     
    Sent: Sunday, May 24, 2015 at 3:13 PM
    From: "Uffe Jakobsen" <wuffe@users.sf.net>
    To: "Ticket 366" <366@bugs.astyle.p.re.sf.net>
    Subject: [astyle:bugs] #366 Change tabs to spaces (but nothing else) with Astyle



    ---

    ** [bugs:#366] Change tabs to spaces (but nothing else) with Astyle**

    **Status:** open
    **Created:** Sun May 24, 2015 09:13 PM UTC by Uffe Jakobsen
    **Last Updated:** Sun May 24, 2015 09:13 PM UTC
    **Owner:** nobody

    I want to change tabs to spaces in my source files with:

    astyle -s 2 -r '*.cpp' '*.hpp'

    But that changes the formatting as well - curly braces etc.

    How do I use astyle to only convert indentation tabs to spaces ?

    Thanks in advance



    ---

    Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/astyle/bugs/366/>



    To unsubscribe from further messages, please visit <https://sourceforge.net/auth/subscriptions/>



    </body></html>

     
  • Jim Pattee

    Jim Pattee - 2018-01-29

    Ticket moved from /p/astyle/bugs/366/

     

Log in to post a comment.