3

Is there a package that allows syntax aware refactoring in python or c++. For example, extracting a value as a parameter, into a function signature, extracting a block as a function (passing local values as parameters into the function signature).

2 Answers 2

5

Python:

https://github.com/python-rope/ropemacs

https://github.com/jorgenschaefer/elpy (also base on rope)

C++:

https://github.com/tuhdo/semantic-refactor

https://github.com/thoni56/c-xrefactory

1

To answer my own question years later: support for LSP via eglot takes care of most of my problems.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.