2012-02-27 10 views
7

plsqldeveloperでコードの一部を折りたたむタグまたはコマンドがありますか。 Java用NetBeansで、私が使用:私の記憶が右C#である場合PL/SQL Developerの折りたたみ領域

<editor-fold desc="description" default-state="collapsed"> 

と:

#region; 

答えて

4

残念ながら、#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; 

今、あなたは、内側アノンブロック

+0

周囲の領域を折り畳むことができるはずですが、これを行うことにより、パフォーマンスのヒットはありますか? – Roger

+1

@Roger nope、ないはず – Sathya

1
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 
関連する問題