7
是否有一些標籤或命令會摺疊plsqldeveloper中的代碼區域;在NetBeans對於Java,我使用:PL/SQL的可摺疊區域開發人員
<editor-fold desc="description" default-state="collapsed">
,如果我的記憶是正確的C#:
#region;
是否有一些標籤或命令會摺疊plsqldeveloper中的代碼區域;在NetBeans對於Java,我使用:PL/SQL的可摺疊區域開發人員
<editor-fold desc="description" default-state="collapsed">
,如果我的記憶是正確的C#:
#region;
不幸的是,有沒有辦法憑藉#region
等來讓你的代碼摺疊。
如果你真的要崩潰的區域,你可能會想使用匿名塊中,並添加標籤作爲匿名提醒圍繞着它。阻止使用。
例子:
create or replace procedure testing_code_folding is
v_number number;
v_date date;
begin
begin <<fold>>
v_number := 0;
v_date := sysdate;
end;
if v_number = 0 then
dbms_output.put_line('end');
end if;
end testing_code_folding;
現在你應該可以在周圍的區域內匿名塊
begin -- this will mark the beginning of collapsible region
insert into state_cd values ('DC', 'District of Columbia');
insert into state_cd values ('AL', 'Alabama');
insert into state_cd values ('MT', 'Montana');
insert into state_cd values ('AK', 'Alaska');
insert into state_cd values ('NE', 'Nebraska');
end; -- the end of collapsible region
倍有沒有在做這個性能的任何衝擊嗎? – Roger 2012-11-21 17:33:19
@羅傑不,不應該有 – Sathya 2012-11-21 17:55:14