Extended Code Completion for Processing
The principle of Extended Code Completion is based on the principle that you write something and then presses ctrl+space to expand it.
Usage
Keyword that expands:
Just write the keyword, and press ctrl+space
Keyword |
expands to |
for |
for(int i=0; i < 10; i++){
} |
if |
if(){
} |
while |
while(){
} |
switch |
switch(){ case 1: break; default: } |
setup |
void setup(){
} |
draw |
void draw(){
} |
swing |
import javax.swing.*; |
Keyword that expands and adds import
Keyword |
expands to |
input |
import javax.swing.JOptionPane; JOptionPane.showInputDialog("") |
inputstr |
import javax.swing.JOptionPane; String str = JOptionPane.showInputDialog(""); |
Code skeleton
If ctrl+space is pressed in an empthy sketch. A code skellton vill be inserted
Function completion
If you write the first part of a function definition, type, name and left parentheses, and then press ctrl+space, the right parentheses and the brackets will be added.
Examples:
will be expanded to:
and
will be expanded to: