A JBuilder tip

zhaozj2021-02-11  152

The code template template using JBuilder means some code blocks that can be inserted into your code, saving you typing time, providing the speed of the encoding process.

Use the Tools menu for TeMplates Page to view the existing code template. If you are using the JBuilder's SE or Enterprise version, you can add the modified code template. Using Code Template in your code has the following methods: 1. Enter the template name in the place you want to insert the code, such as ClassP, then press Ctrl J.

2, move the cursor until you want to insert the code block, press Ctrl J, the editor will display a list of code template, use the up and down direction key to select the template you want, press Enter.

JB has been customized to some templates, such as FORA: for (int i = 0; i <| .length; i ) {} ELSE IF () {} and out: system.out.println ("|"); Where the symbol representative is inserted into the cursor after the code block. You can also define some common templates using the SE or Enterprise Edition. For example, use vector, then traversal can use forv: for (int i = 0; i <| .size (); i ) {Object o = v. Elementat (i);} You may need to modify the variable name in the specific code.

转载请注明原文地址:https://www.9cbs.com/read-5782.html

New Post(0)