Community
Participate
Working Groups
In the current refactoring infrastructure formatting does not follow ASTNodes. Therefore, when these are moved, as happens in Extract Method when code is moved from one method to another, the code is pretty-printed and code formatting does not follow the nodes. The result is that whitespaces in the code are replaced with those inserted by the pretty-printer. This bug was first reported by Alex Richardson in bug 296192, but that bug has become an aggregate of many bugs, so I am splitting them. Reproducible: Always Steps to Reproduce: 1. Create some code with strange formatting and use of macros 2. Select the code and choose Refactor -> Extract method 3. The new code in the new method has now been reformatted according to the rules of the pretty-printer and the macros has been expanded.