8

plsqldeveloper でコードの領域を折りたたむタグまたはコマンドはありますか? Java用のnetBeansでは、次を使用します:

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

私の記憶がC#で正しい場合:

#region;
4

2 に答える 2

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;

これで、内側の anon ブロックの周りに領域を折り畳むことができるはずです

于 2012-03-02T09:49:45.203 に答える
3
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
于 2016-05-06T15:24:34.993 に答える