Monday, June 9, 2008

Finding Matching Parenthesis in Your Source Code

Let us consider a simple C program.

1 #include

2
3 int main(int argc, char *argv[])
4 {
5 printf("Hello World.\n");
6 return (0);
7 }


In order to find matching parenthesis for parenthesis at line number 4.
Just press % in ESc mode.

You can use same command (%) to match (, ), [, ], {, or } .

No comments: