4

I upgraded from Delphi 10.2 to Delphi 12.3

In Delphi 10.2 I discovered sync prototypes feature activated by using keyboard shortcut alt+ctrl+shift+p. This is such a handy function. Change the header and then use the shortcut to automatically update the implementation.

But in Delphi 12.3 it doesn't work anymore. How can I access this feature?

3
  • You might need to install the Modeling feature through Tools menu -> Manage features before this shortcut can work! Commented Oct 14 at 15:50
  • @DelphiCoder To use prototyping under D12.3 there is not need to activate any additional features. normaly it "works" right away. The message "no synchronization method found" simply comes from the unsupported new language features. If any inline Variables exist, prototyping is unable to find the matching method. Commented Oct 15 at 8:31
  • I am compiling code from Delphi 10.2 which did not support inline Variables, so there are none in my code. Commented Oct 15 at 18:21

1 Answer 1

2

I would recommend to use MMX Code Explorer and use this feature from there, because of 2 reasons:

  1. Prototyping does not work properly if any newer language features are in use, like inline variables. There was a debate going on for your problem in the QualityPortal

  2. Since Delphi 13 the "solution" to this problem is, refactoring is missing in general and the new official way is to use MMX Code Explorer.

The shortcode in MMX is Alt+Ctrl+Y

So even if the prototype works under some circumstances in Delphi 12.3 I would recommend to switch to MMX now. It works better than the refectoring in Delphi 12.3 and will be the official solution in Delphi 13.

At this moment better use the beta version because there are some bugfixes.

Sign up to request clarification or add additional context in comments.

2 Comments

And as a side note. Code formatting will also be gone in Delphi 13. The proposed solution to use pasfmt does not fit for my needs, so for that scenario I use GExperts.
I installed MMX, and used the ALT+CTRL+Y, worked great. Thanks..

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.