Search This Blog

Wednesday 19 August 2015

TOAD SQL Editor

Predefined Shortcuts

Keyboard shortcuts are one of the features that make TOAD so powerful and easy to use. TOAD comes with a host of predefined shortcuts. These shortcuts save keystrokes and mouse actions and perform a variety of tasks such as issuing a describe on the current highlighted object, or find (find next, find previous, and so on). The shortcuts differ slightly between the SQL Editor and the PL/SQL Editor (covered in Chapter 4). This section focuses on the shortcuts for the SQL Editor only.
Table 3.1 shows all the shortcuts in keystroke order and Table 3.2 shows all the shortcuts in description order. The third column refers you to the figure in this chapter where the shortcut is illustrated.

Table 3.1 SQL Editor Shortcuts by Keystroke

Shortcut
Description
Illustration
F1
Windows Help File

F2
Toggle Output Window
Shift+F2
Toggle Data Grid Window

F3
Find Next Occurrence

Shift+F3
Find Previous Occurrence

F4
Describe Table, View, Procedure, Function
F5
Execute SQL as a script
F6
Toggle between SQL Editor and Results Panel
F7
Clear All Text

F8
Recall Previous SQL Statement

F9
Execute Statement
Ctrl+F9
Set Code Execution Parameters
Shift+F9
Execute Current SQL statement at Cursor

F10 or right-click
Pop-up Menu
Ctrl+F12
External Editor, Pass Contents
Ctrl+A
Select All Text

Ctrl+C
Copy

Ctrl+E
Execute Explain Plan on the Current Statement
Ctrl+F
Find Text

Ctrl+G
Goto Line

Ctrl+L
Convert Text to Lowercase

Ctrl+M
Make Code Statement

Ctrl+N
Recall Named SQL Statement

Ctrl+O
Open a Text File

Ctrl+P
Strip Code Statement

Ctrl+R
Find and Replace

Ctrl+S
Save File

Shift+Ctrl+S
Save File As
Ctrl+T
Columns Drop-down

Shift+Ctrl+R
Alias Replacement

Shift+Ctrl+T
Columns Drop-Down no alias
Ctrl+Spacebar
Code Templates
Ctrl+U
Converts Text to Uppercase

Ctrl+V
Paste

Ctrl+X
Cut

Ctrl+Z
Undo Last Change

Ctrl+.
Display Pop-up List of Matching Table Names
Shift+Ctrl+Z
Redo Last Undo

Alt+Up Arrow
Display Previous Statement
Alt+Down Arrow
Display Next Statement (After Alt+Up Arrow)
Ctrl+Home
In the data grid: goes to the top of the record set

Ctrl+End
In the data grid: goes to the end of the record set

Ctrl+Tab
Cycles through the Collection of MDI Child Windows


TIP
The competent TOAD user makes use of Shift+F9 to execute SQL statements one at a time out of a script, and F8 to recall the previous SQL statement. The TOAD user also makes use of cut and paste to move code between TOAD windows.
Shift+F9 executes single SQL statements.
F8 recalls the previous SQL statement.

Table 3.2 SQL Editor Shortcuts by Description

Description
Shortcut
Illustration
Alias Replacement
Shift+Ctrl+R

Clear All Text
F7

Code Templates
Ctrl+Spacebar
Columns Drop-down
Ctrl+T
Columns Drop-down no alias
Shift+Ctrl+T
Convert Text to Lowercase
Ctrl+L

Convert Text to Uppercase
Ctrl+U

Copy
Ctrl+C

Cut
Ctrl+X

Cycles through the Collection of MDI Child Windows
Ctrl+Tab

Describe Table, View, Procedure, Function, or Package
F4
Display Next Statement (After Alt+Up Arrow)
Alt+Down Arrow
Display Previous Statement
Alt+Up Arrow
Display Pop-up List of Matching Table Names
Ctrl+.
Execute Current SQL Statement at Cursor
Shift+F9

Execute SQL as a Script
F5
Execute Explain Plan on the Current SQL Statement
Ctrl+E
Execute SQL Statement
F9
External Editor, Pass Contents
Ctrl+F12
Find and Replace
Ctrl+R

Find Next Occurrence
F3

Find Previous Occurrence
Shift+F3

Find Text
Ctrl+F

Goto Line
Ctrl+G

In the data grid: goes to the end of the record set
Ctrl+End

In the data grid: goes to the top of the record set
Ctrl+Home

Make Code Statement
Ctrl+M

Open a Text File
Ctrl+O

Paste
Ctrl+V

Pop-up Menu
F10 or RT-Mouse
Recall Named SQL
Ctrl+N

Recall Previous SQL Statement
F8

Redo Last Undo
Shift+Ctrl+Z

Save File
Ctrl+S
Save File As
Shift+Ctrl+S
Select All Text
Ctrl+A

Strip Code Statement
Ctrl+P

Toggle between SQL Editor and Results Panel
F6
Toggle Full Screen Editor
F2
Undo Last Change
Ctrl+Z

Verify Statement Without Execution (Parse)
Ctrl+F9

Windows Help File
F1



Reference : http://www.informit.com/articles/article.aspx?p=31544&seqNum=2

1 comment: