Jump to content
David Heffernan

New Delphi features in Delphi 13

Recommended Posts

28 minutes ago, Uwe Raabe said:

Define big.

typical forum answer .....................................

Define, Define ?

 

 

 

something more then,

Hello World

 

 

3 million lines, 10thousand files?

 

let me rephrase ....

 

Has someone experienced progress with the code completion, lsp, codeinsight from D12.x to D13.x ?

 

 

Share this post


Link to post

I assume Delphi 13 can be installed alongside 12.3. Can someone confirm? If I install and it doesn't work alongside it would be a disaster for me.

 

— Steve

  • Like 1

Share this post


Link to post
49 minutes ago, Steve Maughan said:

I assume Delphi 13 can be installed alongside 12.3. Can someone confirm?

Yes sure.  They can work side-by-side.

Share this post


Link to post
3 hours ago, Steve Maughan said:

I assume Delphi 13 can be installed alongside 12.3. Can someone confirm?

Yes. Major version releases can coexist with each other. It's minor version releases that can't.

Share this post


Link to post
As with all advancing technology, some things get better and some things must get left behind. Starting with Delphi 12, the modeling features were moved to an optional add-on installation, and in Delphi 13, they're being removed entirely due to technical constraints.

https://corneliusconcepts.tech/code-formatting-delphi-13

 

ROTFL

 

One step forward, ten steps back.

 

 

 

 

 

Edited by Attila Kovacs
  • Like 1

Share this post


Link to post
9 hours ago, Attila Kovacs said:

Does the code formatter support any of the new syntaxes, or has it been removed completely? :classic_biggrin:

As part of the Modelling package it has been removed completely, too.

Share this post


Link to post
47 minutes ago, Uwe Raabe said:

As part of the Modelling package it has been removed completely, too.

So no code formatting and no refactoring? Heavy.

  • Like 1
  • Sad 1

Share this post


Link to post
5 minutes ago, Attila Kovacs said:

So no code formatting and no refactoring? Heavy.

at least we have a great working code insight left... or?

Share this post


Link to post

No refactoring is a showstopper for me to use Delphi 13.0. Big dissapointment.

Share this post


Link to post
6 minutes ago, dwrbudr said:

No refactoring is a showstopper for me to use Delphi 13.0.

Can you say what refactoring you are actually using?

Share this post


Link to post
6 hours ago, Attila Kovacs said:

One step forward, ten steps back.

That's a bit of an exaggerated statement. Code formatting was an optional feature and is most useful if you've inherited old, poorly formatted code or just too lazy to indent properly in the first place (IMHO). Plus, there are other options to continue using it as expressed in the blog. I believe Embarcadero is looking to replace the feature at some point. So, to say this is a huge step back for something so minor is quite petty.

  • Like 1

Share this post


Link to post

Manual formatting for me is the best way to make sure the code is well done, calmly, as a final double-check there are no big bugs or something missing. I'd never do auto format, a headache to configure the many ways format can be done.

  • Like 1

Share this post


Link to post
1 minute ago, corneliusdavid said:

That's a bit of an exaggerated statement. Code formatting was an optional feature and is most useful if you've inherited old, poorly formatted code or just too lazy to indent properly in the first place (IMHO). Plus, there are other options to continue using it as expressed in the blog. I believe Embarcadero is looking to replace the feature at some point. So, to say this is a huge step back for something so minor is quite petty.

You are absolutely right, it's just nine steps backwards. Thank you for highlighting that.

Share this post


Link to post
1 minute ago, david berneda said:

Manual formatting for me is the best way to make sure the code is well done, calmly, as a final double-check there are no big bugs or something missing. I'd never do auto format, a headache to configure the many ways format can be done.

Cool, I prefer Ctrl+D with the same settings on all PCs so versioning can work properly. Funny how opinions differ, huh?

  • Like 3

Share this post


Link to post

I am also a Ctrl+D guy, but usually only for the current selection - and, yes, I will have also have to find a replacement, at least temporarily.

 

Currently I am inclined to use the GExperts Formatter, as it is based on the old DelForExp by Egbert van Nes, which I had been used to quite a long time in the past.

  • Like 3

Share this post


Link to post
35 minutes ago, Attila Kovacs said:

Cool, I prefer Ctrl+D with the same settings on all PCs so versioning can work properly. Funny how opinions differ, huh?

😂 I can quickly identify code not written by me when I see a minor formatting difference. Even 20 years later 😂

Share this post


Link to post
39 minutes ago, david berneda said:

Manual formatting for me is the best way to make sure the code is well done, calmly, as a final double-check there are no big bugs or something missing. I'd never do auto format, a headache to configure the many ways format can be done.

Autoformat has one huge advantage (apart from laziness, of course): It catches wrong indentations that suggest wrong code flows:

if Condition then
  doX;
  doY;
doOtherStuff;

 

  • Like 2

Share this post


Link to post

Ah nice catch ! I personally like to abuse of blank lines, so I quickly see the problem because after the doX; my eyes expect a blank line. Also blank line after each end; (except if the next line is also an end; )

Share this post


Link to post
1 hour ago, david berneda said:

Manual formatting for me is the best way to make sure the code is well done, calmly, as a final double-check there are no big bugs or something missing.

That's nice. If I send you this 800.000 line legacy project I need to clean up, when can you have it ready for me? 🙂

It was written by someone who apparently had a sporadically stuck shift key, didn't like white space, and couldn't make up his mind if 1, 2, 3, or 8 space indents were the way to go.

  • Like 1
  • Haha 3

Share this post


Link to post
13 hours ago, Steve Maughan said:

I assume Delphi 13 can be installed alongside 12.3. Can someone confirm? If I install and it doesn't work alongside it would be a disaster for me.

 

— Steve

I did it and have both versions 12.3 and 13 working.

  • Like 1

Share this post


Link to post

So the Refactor menu is greyed out, why is that? I know it didn't work properly sometimes, even basic "Rename" refactoring. I see above that it was removed with the Modelling support, then why leave the menu item greyed out and not remove it completely then?

Share this post


Link to post
7 hours ago, Perpeto said:

at least we have a great working code insight left... or?

As Marco Cantu pointed out, the LSP Server does not always meet expectations. They are aware of this and are working on an overhaul. In the meantime, they have reactivated the previous version of Code Insight as an option in 13 Florence.

 

Go to Tools / Options / Editor / Language / Delphi / Code audit to choose which one you want to use (in the 32 bits IDE or in the 64 bits IDE).

 

 

Capture d’écran 2025-09-12 à 18.04.00.png

Share this post


Link to post
26 minutes ago, Oboba said:

So the Refactor menu is greyed out, why is that? I know it didn't work properly sometimes, even basic "Rename" refactoring. I see above that it was removed with the Modelling support, then why leave the menu item greyed out and not remove it completely then?

The reason is simple : it's disabled for Delphi (but can be used by IDE plugins or for next update or release), but it is used for C++Builder by Visual Assist tools.

Share this post


Link to post
2 hours ago, Uwe Raabe said:

I am also a Ctrl+D guy, but usually only for the current selection - and, yes, I will have also have to find a replacement, at least temporarily.

 

Currently I am inclined to use the GExperts Formatter, as it is based on the old DelForExp by Egbert van Nes, which I had been used to quite a long time in the past.

I've just installed the GExperts 1.3.26 available from https://blog.dummzeuch.de/2025/09/12/gexperts-1-3-26-beta-for-delphi-13/

 

It work in the 32 bits IDE and allow to enable its code formater with Ctrl+D to restore previous behavior.

 

On some of my units I see a few differences with previous default formater, but not a real problem (except for code versioning) : an indent of variables of same type declared on more than one line.

 

FField1,
FField2: integer;

 

become

 

FField1,
    FField2: integer;

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×