Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnPack IDE 专家包(CnWizards)
» 建议CnWizards IDE 专家包中添加代码格式化功能
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 建议CnWizards IDE 专家包中添加代码格式化功能
水中央
新警察
UID 3652
Digest Posts 0
Credits 2
Posts 2
点点分 2
Reading Access 10
Registered 2006-12-10
Status Offline
#1
Post at 2006-12-11 21:38
Profile
|
Blog
|
P.M.
建议CnWizards IDE 专家包中添加代码格式化功能
网上格式化工具也有几个的,可是都不能用在bds2006上,何况IDE中装了太多插件启动也慢!希望CnWizards IDE 专家包加入此功能!我想这个功能对于大虾们来说设并不难,何况还有源码参考!但是CnWizards IDE 专家包添加的魅力不只一点点!
希望CnWizards IDE 专家包加上这个只要按一下键就能把代码排的整整齐齐的功能的朋友,顶啊!
ccdarkness
新警察
UID 1965
Digest Posts 0
Credits 9
Posts 7
点点分 9
Reading Access 10
Registered 2006-3-9
Status Offline
#2
Post at 2006-12-19 12:15
Profile
|
Blog
|
P.M.
这个建议已经提过很多次,请看置顶的帖子,里面有说明
在cnwizards的源代码里面有个还未完成的,CnCodeFormater
bbsxwk
新警察
UID 3647
Digest Posts 0
Credits 2
Posts 2
点点分 2
Reading Access 10
Registered 2006-12-10
Status Offline
#3
Post at 2006-12-21 10:17
Profile
|
Blog
|
P.M.
据说有些难点解决不了
我现在用D7+DelForExp 很是爽
jAmEs_
灌水部部长
UID 886
Digest Posts 0
Credits 1134
Posts 600
点点分 1134
Reading Access 10
Registered 2005-6-5
Location 广东
Status Offline
#4
Post at 2006-12-21 16:14
Profile
|
Blog
|
P.M.
DelForExp的確不錯,不過我覺得有個不足,我也希望CnPack能解決(按理應該不是很難),就是如一個類,它有
TTest = class
public
procedure FuncTest2;
procedure FuncTest1;
end;
procedure TTest.FuncTest2;
begin
end;
procedure TTest.FuncTest1;
begin
end;
=====>
TTest = class
public
procedure FuncTest1;
procedure FuncTest2;
end;
procedure TTest.FuncTest1;
begin
end;
procedure TTest.FuncTest2;
begin
end;
這樣能把函數的位置都進行整理,我覺得就更爽了:)
jAmEs_
灌水部部长
UID 886
Digest Posts 0
Credits 1134
Posts 600
点点分 1134
Reading Access 10
Registered 2005-6-5
Location 广东
Status Offline
#5
Post at 2006-12-21 16:15
Profile
|
Blog
|
P.M.
局部代碼說實在我自己手工控制都很好了,但是整體上整齊就困難咯,經常覺得代碼亂在這方面
bbsxwk
新警察
UID 3647
Digest Posts 0
Credits 2
Posts 2
点点分 2
Reading Access 10
Registered 2006-12-10
Status Offline
#6
Post at 2006-12-21 22:15
Profile
|
Blog
|
P.M.
哈哈 to:jAmEs_
你也太懒了把 这都要工具啊
再说代码排序有什么意思
方法列表里排序不就ok了?
jAmEs_
灌水部部长
UID 886
Digest Posts 0
Credits 1134
Posts 600
点点分 1134
Reading Access 10
Registered 2005-6-5
Location 广东
Status Offline
#7
Post at 2006-12-23 10:49
Profile
|
Blog
|
P.M.
to bbsxwk,不能這麼說吧?
局部整理要工具的才是真正的懶,局部的可以隨時控制,而且非常自然,但是全局控制卻很不自然的,你沒有理由在複製粘貼的。。。而且大範圍去處理這個,更加不合適。
jAmEs_
灌水部部长
UID 886
Digest Posts 0
Credits 1134
Posts 600
点点分 1134
Reading Access 10
Registered 2005-6-5
Location 广东
Status Offline
#8
Post at 2006-12-23 10:54
Profile
|
Blog
|
P.M.
其實最理想的不是這樣排版,而且歸類處理,比如事件方法,私有方法,公有方法等方式歸類,當然處理起來可能複雜了,其實說不清這樣有什麼好處,主要感覺舒服和容易查找,個人比較期望這樣,呵呵
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#9
Post at 2006-12-24 00:05
Profile
|
Blog
|
P.M.
代码编辑器专家中有个选中行排序功能,可以稍许用作事件方法声明部分的排序,以及工程文件中各个文件的排序。
hotbone
新警察
UID 3862
Digest Posts 0
Credits 1
Posts 1
点点分 1
Reading Access 10
Registered 2006-12-23
Status Offline
#10
Post at 2006-12-24 19:07
Profile
|
Blog
|
P.M.
那天在csdn上看到有个很古老的code arrange expert是不是比较有名?
ccdarkness
新警察
UID 1965
Digest Posts 0
Credits 9
Posts 7
点点分 9
Reading Access 10
Registered 2006-3-9
Status Offline
#11
Post at 2006-12-24 19:59
Profile
|
Blog
|
P.M.
代码排序感觉没什么意思,可能jAmEs_的意思是想编写代码的时候比较容易看其它的函数或者过程
折叠功能是目前最需要的,否则代码有到500行以上就不好写了
jAmEs_
灌水部部长
UID 886
Digest Posts 0
Credits 1134
Posts 600
点点分 1134
Reading Access 10
Registered 2005-6-5
Location 广东
Status Offline
#12
Post at 2006-12-25 12:00
Profile
|
Blog
|
P.M.
代碼折叠雖然不錯,但是我覺得如果底層不好控制,還是不弄的為妙~強制去弄只會帶來更多問題~~
代碼格式化方面,如果沒有什麼特別,我覺得不改也罷,反正有其他好用的,何必去重新弄?當然這個算法還是挺有意思的,可以練功。
jAmEs_
灌水部部长
UID 886
Digest Posts 0
Credits 1134
Posts 600
点点分 1134
Reading Access 10
Registered 2005-6-5
Location 广东
Status Offline
#13
Post at 2006-12-25 12:04
Profile
|
Blog
|
P.M.
或者可以這樣看,Borland帶的組件原碼估計都看過吧,我覺得閱讀他們的原碼真是爽很多了,因為他們都幾乎排序好的吧?如閱讀原碼的時候,你老是要查找函數不符合正常思維,多幾個點後,思維就容易亂了,但是如果你要找的函數就在PgUp、PgDn可以看到,那樣就會不容易打斷思維了。
我是這樣看的。。。
[
Last edited by jAmEs_ on 2006-12-25 at 12:06
]
liqj
新警察
UID 2400
Digest Posts 0
Credits 4
Posts 4
点点分 4
Reading Access 10
Registered 2006-7-24
Status Offline
#14
Post at 2006-12-28 06:13
Profile
|
Blog
|
P.M.
同意jAmEs_
我也觉得同一单元中的声明部份与实现部份的顺序一致会给阅读代码很方便.
VictorWoo
灌水科科长
UID 1975
Digest Posts
1
Credits 114
Posts 98
点点分 114
Reading Access 10
Registered 2006-3-11
Location 福建
Status Offline
#15
Post at 2006-12-28 23:27
Profile
|
Site
|
Blog
|
P.M.
|
|
排序用MMX就可以了
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-23 19:10
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.022033 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