Wednesday, 4 January 2017

JDeveloper - Some common useful shortcut (Ctrl + Enter)

1. Call up code template by "Ctrl + Enter"
Eg 1.. Input "for" in the editor and get the code template of "for loop" syntax block
Steps:

  1. Input "for"
  2. Press "Ctrl + Enter"
  3. Code will become to:
      for (init; condition; next) { 
             
        }
Eg 2. Input "trycf" in the editor and get the code template "try / catch / final" syntax block
Steps:

  1. Input "trycf"
  2. Press "Ctrl + Enter"
  3. Code will become to:
      try {
          
        } catch (Exception e) {
            // TODO: Add catch code
            e.printStackTrace();
        } finally {
        }

Eg 3. Input "sop" in the editor and get the code template "system output's print line" syntax block
Steps:

  1. Input "sop"
  2. Press "Ctrl + Enter"
  3. Code will become to:
      System.out.println();

No comments:

Post a Comment