Skip to content
gabrielelanaro edited this page Nov 24, 2010 · 8 revisions

Rope Refactorings

The rope library provides a lot of tools to perform refactorings. Let's see a typical session:

Renaming

Renaming in ropemacs is quite intelligent all you have to do is to use it

Moving

Renaming renames method between the same class, Moving delegates the method/attribute to another class that's a component of the first.

Organize import

A pep-8 formatting utility

Use Function

It analyze the project and substitutes the function where it is usable, like

pow(a,b): return a**b

a**b -> it will be substituted automatically

if a**b is in another package it will import and substitute

Version Control Awareness

It will move file accordingly

Auto Importing

Have to describe it and to tune it up by default, otherwise it's almost unuseful

Restructurings

Complex stuff

Clone this wiki locally