Editor functions are available on all editable windows to help format and construct SQL statements. The layout of the SQL statement is important to make it easier to read and maintain particularly when dealing with large and complicated SQL statements.
Editor functions settings can be changed within the Options window under the Editor tab.
Button or Menu |
Function |
---|---|
|
|
|
|
|
|
|
|
|
|
Edit Menu
|
|
Edit Menu
|
|
Edit Menu
|
|
Edit Menu
|
|
Edit Menu
|
|
Edit Menu
|
Auto correction automatically corrects any typo and spelling errors, if the auto correction option is turned on. For example, if " teh " is typed followed by a space, it will automatically be corrected to "the". Auto correction entries are user-defined and can be modified in the Options window.
To setup auto correction
Click .
Select the Editor tab.
Under the Editing section, click next to the Auto Correction checkbox to open the Auto Correction Settings window.
Modify the auto correction entries
Click Apply.
Click OK.
Check the Auto Correct checkbox in order for auto correction function to be enabled.
The available auto correction entries are listed on the list box. Each entry has a Replace text (the original text typed) and With text (the replacement text).
Action keys are the keys that will activate the auto correction. When you type the Replace text and follow it by any action key, the replacement takes place. No whitespaces are needed to separate each key. By default, the action keys are ";,:=[]\ n\t\s" representing the following:
Action Key |
Description |
---|---|
; |
semi-colon |
, |
comma |
: |
colon |
= |
equal sign |
[ |
left bracket |
] |
right bracket |
\n |
new line |
\t |
tab |
\s |
space |
To add an correction entry
Click Add.
Enter the original text [Replace] and replacement text [With].
Click Apply.
Click OK.
Click Apply.
Click Close.
To modify an auto correction entry
Select the entry to be modified from the Auto Corrections box.
Click Edit.
Modify the text.
Click OK.
Click Apply.
Click Close.
To delete an auto correction entry
Select the entry to be modified from the Auto Corrections box.
Click Delete.
Click Apply.
Click Close.
Simple mistakes are often made during SQL construction because of uneven left and right brackets. An easy way to identify the corresponding open and closed brackets for round brackets, curly brackets, or square brackets is to turn on the Bracket Pairing parameter in the Options window.
To enable or disable Bracket Pairing
Click .
Select the Editor tab.
Under the General section, select Bracket Pairing.
It is possible to comment or uncomment a line of text by selecting the line or highlighting the text and use the Comment and Uncomment functions. These two functions use the single line comment delimiter "- -". Commenting out a line means that the line will be ignored during execution.
To comment a line of text
Select the text or place the cursor at the line to be commented.
Click .
Notice that the beginning of a text or line prefix is marked with the " - - " delimiter.
To uncomment a line of text
Select the text or place the cursor at the line to be uncommented.
Click .
Notice the first occurrence of the " - - " comment delimiter will be removed.
© ALL RIGHTS RESERVED. Termini di utilizzo Privacy Cookie Preference Center