简体   繁体   English

PL / SQL Developer的可折叠区域

[英]Collapsible region for PL/SQL Developer

Is there some tag or command that would collapse a region of my code in plsqldeveloper; 是否有一些标记或命令会使plsqldeveloper中的代码区域折叠? in netBeans for java, I use: 在netBeans for Java中,我使用:

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

and if my memory is right in c#: 如果我的记忆在C#中正确:

#region;

Unfortunately, there's no way to make you code collapsible by virtue of #region or the like. 不幸的是,没有办法借助#region等使您的代码可折叠。

If you really want to collapse a region, you'll probably want to surround it using an anonymous block, with an added label as a reminder for the anon. 如果您确实要折叠某个区域,则可能需要使用一个匿名块将其包围,并添加一个标签以提醒匿名。 block usage. 阻止使用。

Example: 例:

   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;

Now you should be able to fold the region around the inner anon block 现在您应该可以折叠内部负离子块周围的区域

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM