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:
Eg 1.. Input "for" in the editor and get the code template of "for loop" syntax block
Steps:
- Input "for"
- Press "Ctrl + Enter"
- Code will become to:
}
Eg 2. Input "trycf" in the editor and get the code template "try / catch / final" syntax block
Steps:
} catch (Exception e) {
// TODO: Add catch code
e.printStackTrace();
} finally {
}
Steps:
- Input "trycf"
- Press "Ctrl + Enter"
- Code will become to:
} 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:
Steps:
- Input "sop"
- Press "Ctrl + Enter"
- Code will become to:
No comments:
Post a Comment