• sajran@lemmy.ml
    link
    fedilink
    English
    arrow-up
    14
    ·
    8 months ago

    The solution to this problem (and many others) is to use an IDE / editor which supports refactoring like that. Which is pretty much every IDE / editor unless you’re using some very obscure language I think.

    • lseif
      link
      fedilink
      arrow-up
      3
      ·
      8 months ago

      anything that supports your language’s language server protocol

      • sajran@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        8 months ago

        Yup, that’s what I meant. I really don’t see why anyone wouldn’t use it nowadays.

        • lseif
          link
          fedilink
          arrow-up
          1
          ·
          8 months ago

          a lot of languages these days ship with tooling.