2

I'm using Astyle in Eclipse.

I want to be able to use it on a part of a file, and not on an entire source file (e.g. to beautify only one function in the code, and not the entire source file). How do I do that?

Thanks!

Yoss
  • 41
  • 1
  • 4

2 Answers2

1

For now, astyle doesn't support dry runs nor ignoring sections of a file.
So implementing the feature that you are wishing for would probably imply creating a temporary file and invoke astyle to format it.
Maybe you have enough eclipse knowledge to implement that.
Kind regards.

chaami
  • 1,306
  • 1
  • 9
  • 10
0

I could use this feature inside Code::Blocks (SVN 9455) that uses Astyle for code beautification.Formatting part of code using Astyle inside Code::Blocks

Seshadri R
  • 1,192
  • 14
  • 24