Basic code refactoring in PyCharm | Getting started

Поділитися
Вставка
  • Опубліковано 10 лют 2025

КОМЕНТАРІ • 4

  • @anatoly1
    @anatoly1 2 роки тому +1

    Woah , change signature is cool

  • @seanpeter3613
    @seanpeter3613 Рік тому +1

    Regarding changing a signature, say, 'salutation' already exists, so I don't want to add a value, is it possible to enter 'salutation=salutation' at 2:51? Or isn't that recommended?
    If so, is there another way to add existing parameters to the signature?

  • @Sergei9838
    @Sergei9838 Рік тому

    Refactoring all the instances in the project is great! But what's if I want just to change all the instances in a piece of code? For instance, I want to repeat a piece of code and replace all var_a to var_b in it? Just now I am just copying the fragment to a text editor, replace the instances there and copy back to PyCharm. But it would be nice not to leave PyCharm for that. I envisage a problem with selection, because as soon as I click on an expression inside a selected fragment, it de-select the fragment. But if would be nice to have an option to replace the instances down in the code only.

  • @drooten
    @drooten 2 роки тому

    I had not realised there was an in place signature change, I’ve been using windows shift + F6 to do this.