CnPack Forum


 
Subject: 代码格式化的问题
小帆
普通灌水员
Rank: 2



UID 1619
Digest Posts 0
Credits 72
Posts 26
点点分 72
Reading Access 10
Registered 2006-1-4
Status Offline
Post at 2025-3-1 08:57  Profile | Blog | P.M. 
代码格式化的问题

各位开发组的大佬好,
例如下面这一段代码,我希望是现在看到的这样,比较紧凑:

var
  MainForm: TMainForm;

procedure CreateDllForm(AppHandle: THandle; AStyleID: PChar; HostInstance: HINST); stdcall;
procedure ShowDllForm; stdcall;
procedure SetDllFormBounds(ARect: TRect); stdcall;
function QueryDataChanged: Boolean; stdcall;
procedure DestroyDllForm; stdcall;
procedure SetDllStyle(AStyleID: PChar); stdcall;

implementation

{$R *.dfm}

//**************************

一旦用专家包格式化后,变为每个申明下面都带空行,看着不太好看。

var
  MainForm: TMainForm;

procedure CreateDllForm(AppHandle: THandle; AStyleID: PChar; HostInstance: HINST); stdcall;

procedure ShowDllForm; stdcall;

procedure SetDllFormBounds(ARect: TRect); stdcall;

function QueryDataChanged: Boolean; stdcall;

procedure DestroyDllForm; stdcall;

procedure SetDllStyle(AStyleID: PChar); stdcall;

implementation

{$R *.dfm}

//**************************

这个我该怎么设置呢?
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6888
Posts 3614
点点分 6888
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2025-3-7 07:46  Profile | Blog | P.M. 
代码格式化专家没有这个设置项。

但“编码工具集”里有个“删除空行”功能,可供使用。
Top
 




All times are GMT++8, the time now is 2025-4-2 08:01

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.007604 second(s), 8 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP