CnPack Forum » CnPack IDE 专家包(CnWizards) » Cnpack在delphi中有没有自定义缩进对齐的方法?


2012-12-23 23:38 莲池路口
Cnpack在delphi中有没有自定义缩进对齐的方法?

[color=#000000][size=5][font=宋体]我个人习惯于把[/font][font=Times New Roman]if…then[/font][font=宋体]格式写成[/font][/size][/color]
[font=Times New Roman][size=5][color=#000000]If ….[/color][/size][/font]
[color=#000000][size=5][font=Times New Roman]  Then [/font][font=宋体]的格式。[/font][/size][/color]
[color=#000000][size=5][font=宋体]但是,[/font][font=Times New Roman]Cnpack[/font][font=宋体]在[/font][font=Times New Roman]delphi[/font][font=宋体]中不支持这种格式,这样在多重[/font][font=Times New Roman]if[/font][font=宋体]语句嵌套的时候就会非常混乱。我想知道,有没有什么自定义的方法,定义我需要的这种缩进对齐?[/font][/size][/color]
[font=宋体][size=5][color=#000000]请各位高手不吝赐教,谢谢![/color][/size][/font]

2012-12-24 10:00 Passion
感谢关注。我们的代码编辑器扩展中,只有针对行尾存在特定关键字时回车允许缩进的功能,但没有您说的这种敲入then后直接改变缩进的功能。

2012-12-24 16:55 ddlucky
请关注:source code fomatter

页: [1]


Powered by Discuz! Archiver 5.0.0  © 2001-2006 Comsenz Inc.