[英]Collapsible region for PL/SQL Developer
是否有一些標記或命令會使plsqldeveloper中的代碼區域折疊? 在netBeans for Java中,我使用:
<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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.