Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnPack IDE 专家包(CnWizards)
» 代码格式化在 delphi 11.1 上不能用
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 代码格式化在 delphi 11.1 上不能用
小帆
普通灌水员
UID 1619
Digest Posts 0
Credits 63
Posts 24
点点分 63
Reading Access 10
Registered 2006-1-4
Status Offline
#1
Post at 2022-3-26 12:18
Profile
|
Blog
|
P.M.
代码格式化在 delphi 11.1 上不能用
FMX 窗体中
[Copy to clipboard]
CODE:
procedure TForm1.FormCreate(Sender: TObject);
begin
var AHandle :=
{$IFDEF MSWINDOWS} $001 {$ENDIF}
{$IFDEF ANDROID} $002 {$ENDIF}
end;
就这么一段代码,Ctrl+W 格式化代码时会提示出错,格式化代码设置中的编译指令用何种设置都会提示错误。
上面代码改为:
[Copy to clipboard]
CODE:
var AHandle :={$IFDEF MSWINDOWS} $001 {$ELSEIF ANDROID} $002 {$ENDIF};
错误依旧
希望能修复。
[
本帖最后由 小帆 于 2022-3-26 12:28 编辑
]
Image Attachment
:
ScreenSnap_20220326121816571.png
(2022-3-26 12:18, 14.95 K)
Image Attachment
:
001.png
(2022-3-26 12:26, 13.7 K)
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#2
Post at 2022-4-3 11:20
Profile
|
Blog
|
P.M.
CnPack没法判断条件编译指令是否定义,因而处理的时候无论是当成注释,还是只处理第一个分支,均有无法识别语法的情况存在。暂时没好的办法。
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-22 01:26
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.010380 second(s), 8 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats