Last Site Update: December 20th, 2024 | Latest Version: 12.2.0 |
|
|
|
|
|
|
|
|
Well, let's see how refactoring works... and let's make it by example As our 'base', we will use the example below:
Features:
Let's say we want to rename our 'newVar', and call it 'renamedVar'. To do that, mark it and press Alt+Shift+R and set the name to 'renamedVar'
Extracting a method: Let's mark the '100+500' and press Alt+Shift+M (alternatively, you could use a context menu: press the right button and select: refactoring > Extract Method). And set the name of the new method to 'newMethod'.
Inlining a variable: Let's say that we are still not satisfied with that, we wouldn't like that 'var' variable, so, we want to remove the reference to it and call the method directly. To do that, mark the 'var' and press Alt+Shift+I.
Extracting a variable: Ok, it just wasn't what we wanted, so, let's make the opposite refactoring, let's extract a variable from the self.newMethod() call. Mark it and press Alt+Shift+L and set the name to 'newVar'
|
PyDev developmentPyDev is open source and depends on your contributions! This may be in the form of bug fixes, answers on stackoverflow, new features...Another option is financially supporting it at: Patreon (which provides a way to support it monthly and get rewards starting with $1). Or through 1-time contributions at: Paypal Search PyDev-related content |
|
|
Copyright: Brainwy Software Ltda, 2014-2021 |