Keyboard Shortcuts

Visual Studio .NET 2003

Visual FoxPro supports keyboard shortcuts in these areas:

  • Menu Commands
  • Window Manipulation
  • Help
  • Properties Window
  • Default Macros Definitions
  • Class Browser
  • Editor
  • Report Designer
  • Print Preview Window

Menu Commands

Shortcut Command
CTRL+A Select All (Edit menu)
CTRL+C Copy (Edit menu)
CTRL+D Do (Program menu)
CTRL+E Delete Item (Menu menu)
CTRL+E Do <program> (Program menu)

Run Form (Form menu)

CTRL+F Find (Edit menu)
CTRL+G Find Again (Edit menu)
CTRL+H Change Partitions (Table menu)
CTRL+I Insert Item (Menu menu)
CTRL+J Project Info (Project menu)
CTRL+L Replace (Edit menu)
CTRL+M Resume (Program menu)
CTRL+N New (File menu)
CTRL+O Open (File menu)
CTRL+P Print (File menu)
CTRL+Q Closes current text window and discards changes (see also CTRL+W).
Run Query (Query menu)
CTRL+R Redo (Edit menu)
CTRL+S Save (File menu)
CTRL+T Toggle Deletion Mark (Table menu)
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)
CTRL+Z Undo (Edit menu)

Window Manipulation

Shortcut Action
CTRL+F1 Cycles windows
CTRL+F2 Displays Command window
CTRL+F4 Closes active window
CTRL+F6 Cycles windows
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.
CTRL+F10 Toggles window size between maximum and restore.


Shortcut Action
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

Shortcut Action
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 Moves to next object in drop-down Object list.
CTRL+PAGE UP Moves to previous object in drop-down Object list.
CTRL+END Moves to last object in drop-down Object list.
CTRL+HOME Moves to first object in drop-down Object list.
For Labels:

Toggles from Select to Edit mode
Toggles from Edit to Select mode

Default Macros Definitions

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.


To edit windows in Visual FoxPro you can use modifier keys to choose either cut-and-paste or copy-and-paste dragging.

Shortcut Action
CTRL+Drag Copies and pastes.
ALT+Drag (previous Visual FoxPro default) Cuts and pastes.
CTRL+J IntelliSense – activates list members
CTRL+I IntelliSense – show info
CTRL+J IntelliSense – list values
F3 Finds the next occurrence of the specified text
SHIFT+F3 Finds the previous occurrence of the specified text
CTRL+F3, CTRL+G Finds the next occurrence of the selected text
CTRL+SHIFT+F3 Finds the previous occurrence of the selected text
CTRL+UPARROW Scrolls window down without moving cursor
CTRL+DOWNARROW Scrolls window up without moving cursor
CTRL+RIGHTARROW Enhances navigation in editor
CTRL+LEFTARROW Enhances navigation in editor
CTRL+F9 Enables or disables a breakpoint
F9 Inserts or removes a breakpoint
CTRL+B Brings up Breakpoints dialog box
F2 Moves to the line containing the next bookmark
SHIFT+F2 Moves to the line containing the previous bookmark
ALT+SHIFT+F2 Toggles a bookmark for the current line on and off
ALT+F2 Adds/Removes Task List shortcut
CTRL+SHIFT+U Makes the selection all uppercase
CTRL+U Makes the selection all lowercase
CTRL+BACKSPACE Deletes a word to the left

Report Designer

Shortcut Action
CTRL+TAB Toggles designer to Tab mode, so the Tab key can be used to navigate between objects on the report.
TAB Tabs to the next object on the Report designer when in Tab mode.
SHIFT+TAB Tabs to the previous object on the Report designer when in Tab mode.
CTRL+E Places control in Edit mode when a Label control is selected on the Report designer. Use ESC key to go back to Select mode.

In Visual FoxPro, you can change the default DragDrop behavior by clicking DragDrop between words in the Editor tab of the Tools, Options dialog box. Use ALT+Drag to toggle to the alternate setting — drag to within words or drag between words only.

Form Designer and Class Designer

Shortcut Action
CTRL+E Runs the form in the Form Designer.
CTRL+SHIFT+Click on the control Drills down to a control in a container.
CTRL+Click on the container Drills down through the container.

Print Preview Window

Shortcut Action
Z Zooms in and out.
L Toggles between various zoom levels.
G Opens Goto page dialog box.
ESC Closes Print Preview window.
LEFTARROW Scrolls Print Preview window left.
RIGHTARROW Scrolls Print Preview window right.
UPARROW Scrolls Print Preview window up.
DOWNARROW Scrolls Print Preview window down.
PAGEDOWN Moves Print Preview window to next page.
PAGEUP Moves Print Preview window to previous page.
HOME Moves Print Preview window to first page.
END Moves Print Preview window to last page.

See Also

Debugger Keyboard Shortcuts | Command Window | Class Browser Window | New Keyboard Access and Control Shortcuts