Originally shared by Thomas Mueller (dummzeuch)

Originally shared by Thomas Mueller (dummzeuch)

Did you know that the Delphi IDE's rename refactoring (Ctrl+Shift+E) also works for forms and components? It works even better than GExperts Rename Component expert, because it also renames all references, not just the component in the dfm and the declaration in the class.

Comments

  1. Yep. Sadly, I've got catastrophic errors from time to time when using Delphi's refactoring tools

    ReplyDelete
  2. Me too, the refactoring tools have never worked for me in huge projects without crashing the entire IDE. It tends to crash even in HelloWorld projects.

    ReplyDelete
  3. It's flaky as heck. Seldom does it work well in my projects.

    ReplyDelete
  4. I can use it about a dozen times in a project, then I need to restart the IDE.

    Seems it misses some references inside the IDE (:

    ReplyDelete
  5. Christopher Wosinski " It tends to crash even in HelloWorld projects."

    Technically that's a "Goodbye Cruel World" project.

    ReplyDelete
  6. I find it works well... if you compile the project first (and it compile successfully). Anything but a successful compile is asking for trouble.

    ReplyDelete
  7. I can confirm Nicholas Ring observation. If the project compiles, Ctrl-Shift-E works. Once it's broken, you need to restart the IDE.

    ReplyDelete
  8. It works for me most of the time. Yes, it tends to crash the IDE sooner or later, but even then, I haven't lost any work yet. Of course that's not good.

    ReplyDelete
  9. If the refactoring feature works only for compilable project it worth to include that fact in documentation.

    ReplyDelete

Post a Comment