Keyboard Shortcuts

See Also

Visual FoxPro supports keyboard shortcuts in these areas:

Menu commands
Window manipulation
Help
Properties window
Default macros definitions
Class Browser

Menu commands

Shortcut Command Applies to
CTRL+A Select All (Edit Menu) Editing text
CTRL+C Copy (Edit Menu)  
CTRL+D Do (Program Menu)
CTRL+E Delete Item (Menu Menu) Designing menus
CTRL+E Do <program> (Program Menu)

Run Form (Form Menu)

Programs

Form Designer

CTRL+F Find (Edit Menu)  
CTRL+G Find Again (Edit Menu)
CTRL+H Change Partitions (Table Menu) Browse windows
CTRL+I Insert Item (Menu Menu) Designing menus
CTRL+J Project Info (Project Menu) Projects
CTRL+L Replace (Edit Menu)  
CTRL+M Resume (Program Menu) Programs
CTRL+N New (File Menu)  
CTRL+O Open (File Menu)
CTRL+P Print (File Menu)
CTRL+Q Run Query (Query Menu)Quit (File Menu) Queries
When the Query Designer is not active, CTRL+Q closes the active window or dialog box.
CTRL+R Redo (Edit Menu)  
CTRL+S Save (File Menu)
CTRL+T Toggle Deletion Mark (Table Menu) Browse windows
CTRL+V Paste (Edit Menu)  
CTRL+W Closes current text window or dialog box and saves changes.
CTRL+X Cut (Edit Menu)
CTRL+Y Append New Record (Table Menu) Browse windows
CTRL+Z Undo (Edit Menu)  

Window manipulation

Shortcut Action
CTRL+F1 Cycles windows
CTRL+F2 Displays Command window
CTRL+F4 Closes active window
CTRL+F5 Restores maximized window
CTRL+F6 Cycles windows
CTRL+F7 Moves active window
CTRL+F8 Sizes active window
CTRL+F9 Minimizes active window
CTRL+F10 Maximizes active window
CTRL+ALT+SHIFT Hides all child windows while the keys are pressed down. Hiding windows makes it easy to see output displayed in the main application window.

Help

F1 Displays Help Contents or context-sensitive Help on active items (for example, a highlighted keyword in the Command window or the current property in the Properties window).
SHIFT+F1 Enables user-prompted context-sensitive Help. The insertion pointer changes to a question mark so that you can click on an item (for example, a menu command or toolbar) to display context-sensitive Help.

Properties Window

CTRL+ALT+alpha Selects the next property in the properties list that begins with the alpha character. For example, pressing CTRL+ALT+B selects the next property that begins with B.
CTRL+PAGE DOWN Move to next object in drop-down Object list.
CTRL+PAGE UP Move to previous object in drop-down Object list.
CTRL+END Move to last object in drop-down Object list.
CTRL+HOME Move to first object in drop-down Object list.

Default Macros Definitions

F2 SET
F3 LIST
F4 DIRECTORY
F5 DISPLAY STRUCTURE
F6 DISPLAY STATUS
F7 DISPLAY MEMORY
F8 DISPLAY
F9 APPEND

Note The macro definitions apply to the Command window. You can change the macro definitions with the Macros command on the Tools menu.

Class Browser

Shortcut Action
F5 Refreshes the current view.
SHIFT+F10 Displays a shortcut menu.
Right-click+Open button
Right-click+Add button
Right-click+Component Gallery button
Displays a history of last 32 files loaded.
Right-click+View Class Code button Displays the class code in a webview form.
CTRL+Right-click+Class icon
(in upper left corner of the Class Browser)
Creates an instance of the class with the NEWOBJECT( ) function in the Command window.

Identical to dragging the Class icon onto the Command window.

SHIFT+Right-click+Class icon
(in upper left corner of the Class Browser)
For forms, runs the form.

For other controls and objects, creates an instance of the control or object. For controls, also adds the control to the Visual FoxPro desktop at 0,0.

Identical to dragging the Class icon onto the Visual FoxPro desktop.