Board logo

Subject: 代码格式化的问题 [Print This Page]

Author: 小帆    Time: 2025-3-1 08:57     Subject: 代码格式化的问题

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

[Copy to clipboard]
CODE:
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}

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

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

[Copy to clipboard]
CODE:
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}

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

这个我该怎么设置呢?
Author: Passion    Time: 2025-3-7 07:46

代码格式化专家没有这个设置项。

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




Welcome to CnPack Forum (http://bbs.cnpack.org/) Powered by Discuz! 5.0.0