Jump to content
PeterPanettone

IDE addin to automatically add fully qualified namespace to uses clause unit names and variable type declarations?

Recommended Posts

Is there an IDE addin to automatically change for example this:
 

var

  I: Integer;

into this:

var

  I: System.Integer;

 

and this:

 

uses Messages, Variants, Classes, Controls, Forms, Dialogs, StdCtrls;

 

into this:

 

uses Winapi.Messages, System.Variants, System.Classes, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls

Edited by PeterPanettone

Share this post


Link to post

GExperts can do the latter, but not automatically for a whole project, only for the uses clause of the current unit.

  • Like 1

Share this post


Link to post

Thanks. You mean this one?

 

image.thumb.png.f5fd984f32ab82a53d663889651eec0c.png

 

May I add a suggestion: For USER FEEDBACK, change the color of the unit names in the UCM list to another color after the processing. Would be useful.

 

BTW: Where does UCM get the namespace prefixes?

 

...and it would be nice if it could do for the WHOLE PROJECT, as an option. :classic_smile:

Edited by PeterPanettone

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

×