1. Check whether brackets match
Shortcut Keys for parentheses
combination Shortcut Keys |
function |
Ctrl +] |
If the right side of the cursor is a right brace, move the cursor to the right brace; if the right side of the cursor is a left brace, move the cursor to the right brace that matches it |
Ctrl + [ |
If the left bracket of the cursor is left, move the cursor before the left bracket, if the left side of the cursor is a right brace, move the cursor before the matching left brace |
Ctrl + shirt +] |
If the right side of the cursor is an angle bracket, move the cursor after the angle bracket, if the right side of the cursor is a left brace, move the cursor to the right brace that matches it, and select all text in the period |
Ctrl + shimpaired + [ |
If the left bracket of the cursor is left, move the cursor before the rear bracket, if the left side of the cursor is a right brace, move the cursor to the matching left brace, and select all text in the period |
2. Check syntax errors by code color
Omitted
3. Use the syntax check function to check for syntax errors
(1) Use the syntax detection function to detect possible syntactic errors
1. Parentheses or double quotation marks do not match. 2. The variable name assigned or the defined function name is incorrect. 3. The number of parameters for calling a function is different from the number of parameters required by the function. 4. the syntax of some special functions is incorrect.
(2) syntax check steps:
Tool> check the text in the editor.
Chapter 4 edit source code in Visual LISP (4) Check syntax errors