Documente Academic
Documente Profesional
Documente Cultură
Global Keys
Global Keyboard Shortcuts Global Keys
The Form
Form Window Keys
Function
Use the following key combinations in all development environment windows. Note You can change or create keyboard shortcuts in Keyboard of the Environment options in the Options dialog box. To Activate the selected item and changes to edit mode. In an editor, displays the Object Browser. Close a menu or dialog box, cancel an operation in progress, or place focus in the current document window. Close a tool window. Close the current MDI child window. Create a new file. Create a new project. Cycle through the MDI child windows one window at a time Display a system menu for an MDI child window. Display a system menu for the application window. Display the Add Item dialog box where you can add new or existing items to your project. Display the Auto window and move the cursor into it. Display the Call Stack window and move the cursor into it. Display the Document Outline window and move the cursor into it. Display the Find window. Display the Find window. If there is no current Find criteria, put the word under your cursor in the Find box. Display the Immediate window and move the cursor into it. Not available if you are in the Text Editor window. Press F2 ESC SHIFT+ESC CTRL+F4 CTRL+SHIFT+N CTRL+N CTRL+F6 or CTRL+TAB ALT+HYPHEN (-) ALT+SPACEBAR CTRL+D CTRL+ALT+A CTRL+ALT+C CTRL+ALT+T CTRL+H CTRL+F CTRL+ALT+I
Function
Display the Locals window and move the cursor into it. Display the Object Browser and move the cursor into from anywhere but an editor. Display the Output window and move the cursor into it. Display the Project Explorer and move the cursor into it. Display the Properties window and move the cursor into it. Display the Properties window. Display the Property Pages window. Display the Running Documents window and move the cursor into it. Display the shortcut menu. Display the Task List window and move the cursor into it. Display the Thread window and move the cursor into it. Display the Toolbox and move the cursor into it. Display the Watch window and move the cursor into it. Find next occurrence of specified text. Go to the next tool window. Go to the previous tool window. Move to the next MDI child window. Move to the previous MDI child window. Move to the next page of items in the current tab if there are more items than can be shown at one time. Move to the previous page of items in the current tab if there are more items than can be shown at one time. New File
CTRL+ALT+L CTRL+ALT+B CTRL+ALT+O CTRL+ALT+J CTRL+ALT+P F4 SHIFT+F4 or ALT+ENTER CTRL+ALT+D SHIFT+F10 CTRL+ALT+K CTRL+ALT+H CTRL+ALT+X CTRL+ALT+W F3 ALT+F6 ALT+SHIFT+F6 CTRL+SHIFT+F6 CTRL+SHIFT+TAB PAGE UP PAGE DOWN CTRL+SHIFT+N
Function
Open a file. Open a project. Print all or part of the document. Run an application using the debugger. Save all of the files, project, or documents. Save the current document or selected item or items. Select All. Stop Break into a running an application.
Use the following key combinations in all Windows-based applications: To Close the active application; if all windows are closed, close the development environment. Copy the selection to the Clipboard. Cut the selection and move it to the Clipboard. Display documentation. Display the shortcut menu. Insert the Clipboard contents at the insertion point. Move between the last two active windows. Paste the Clipboard contents at the insertion point. Restore the previously undone action (Redo). Undo the last editing action in the current line. Press ALT+F4 CTRL+C or CTRL+INS CTRL+X or SHIFT+DELETE F1 SHIFT+F10 CTRL+V or SHIFT+INSERT ALT+F6 CTRL+V or SHIFT+INSERT CTRL+SHIFT+Z or ALT +SHIFT+BACKSPACE CTRL+Z or ALT +BACKSPACE
Function
Global Keys
Use these key combinations in all Visual Basic windows: Press F5 F8 SHIFT+F8 CTRL+BREAK CTRL+G SHIFT+F5 CTRL+TAB ALT+F5 To Run an applications Sub/UserForm or macro. Execute code one line at a time. Execute statements one line at a time without stepping into procedure calls. Stop running a Visual Basic application. Displays the Immediate window. Restart an application from the beginning after an interruption. Switch between windows. Runs the error handler code or returns the error to the calling procedure. Does not affect the setting for error trapping on the General tab of the Options dialog box. Steps into the error handler or returns the error to the calling procedure. Does not affect the setting for error trapping on the General tab of the Options dialog box.
ALT+F8
Use these key combinations in all Windows-based applications: Press F1 ALT+F6 To Open Help. Toggle between the last two active windows.
Function
(Visual Basic) Close the active window; if all windows are closed, close Visual Basic. Copy the selection to the Clipboard. Cut the selection to the Clipboard. Paste the Clipboard selection. Undo the last edit. View shortcut menu.
CTRL+V
Function
SHIFT+F3
Find Previous: repeat text search up through your code. If no text search has been done, the Find dialog box is displayed. Remove indent. Insert a blank line above the current line.
SHIFT+TAB CTRL+N
Function
Move one word to right Move one word to left Move to end of line
Move to beginning of line HOME Undo Delete current line Delete to end of word Indent Outdent Clear all breakpoints View shortcut menu CTRL+Z CTRL+Y CTRL+DELETE TAB SHIFT+TAB CTRL+SHIFT+F9 SHIFT+F10
Function
SHIFT+F8 CTRL+BREAK HOME END Double-click on the split bar SHIFT+F10 SHIFT+F5 ALT+F5
Execute code one procedure at a time (procedure step). Stop running a Visual Basic application. Move the cursor to the beginning of text in a line. Move the cursor to the end of text in a line. Delete the split bar. View shortcut menu. Restart an application from the beginning. Runs the error handler code or returns the error to the calling procedure. Does not affect the setting for error trapping on the General tab of the Options dialog box. Steps into the error handler or returns the error to the calling procedure. Does not affect the setting for error trapping on the General tab of the Options dialog box. Turn on ListProperties/Methods. Turn on List Constants. Turn on Quick Info. Turn on Parameter Info. Turn on Complete Word.
ALT+F8
Function
CTRL+F2 SHIFT+F2 CTRL+DOWN ARROW CTRL+UP ARROW PAGE DOWN PAGE UP CTRL+SHIFT+F2 CTRL+HOME CTRL+END CTRL+RIGHT ARROW CTRL+LEFT ARROW END HOME CTRL+PAGE DOWN CTRL+PAGE UP F6
Move the insertion point into the Object box. Go to the definition of the selected procedure. Display the next procedure. Display the previous procedure. Page down through the procedures in your code. Page up through the procedures in your code. Go back to the last position in your code. Go to the beginning of the module. Go to the end of the module. Go one word to the right. Go one word to the left. Go to the end of the line. Go to the beginning of the line. Go to the bottom of the current procedure. Go to the top of the current procedure. Switch between Code window panes (when the window is split).
Function
CTRL+Z CTRL+V DEL or DELETE CTRL+F SHIFT+F4 CTRL+H TAB SHIFT+TAB SHIFT+F2 CTRL+SHIFT+F2 F2 CTRL+G CTRL+R F4 F8 SHIFT+F8 CTRL+F8 F9 CTRL+SHIFT+F9 F5 CTRL+BREAK SHIFT+F10 CTRL+S
Undo Paste Delete Find Find Next Replace Indent Outdent Definition Last Position Object Browser Immediate Window Project Explorer Properties Window Step Into Step Over Run To Cursor Toggle Breakpoint. Clear All Breakpoints Start Break Shortcut menu Save Form
Function
CTRL+A CTRL+F5 SHIFT+F4 CTRL+D CTRL+J CTRL+SHIFT+J SHIFT+F9 CTRL+N CTRL+O CTRL+I CTRL+SHIFT+I CTRL+SPACEBAR
Save Form As Start with Full Compile Property Pages Add File List Properties/Methods List Constants Quick Watch New Project Open Project Quick Info Parameter Info Complete Word
Function
Delete the selection or, if there is no selection, the character to the left of the cursor. Find the matching brace. Delete the word to the left of the insertion point. Copy the selected text to the Clipboard. Delete the word to the right of the insertion point. Move the cursor to the end of the list. Display the Find window. If there is no current Find criteria, places the word under your cursor in the Find box. Find the next occurrence of the current word or selection. Display the Find window where you can replace the specified text. Move the cursor to the beginning of the list. Display Quick Info. Display list of members. Extend the selection to the matching brace. Extend the selection to the end of the document. Find the previous occurrence of the specified text. Extend the selection to the beginning of the file. Display Parameter Info. Extend the selection one word to the left. Extend the selection one word to the right.
CTRL+F3 CTRL+H CTRL+HOME CTRL+I CTRL+J CTRL+SHIFT+] CTRL+SHIFT+END CTRL+SHIFT+F3 CTRL+SHIFT+HOME CTRL+SHIFT+I CTRL+SHIFT+LEFT ARROW CTRL+SHIFT+RIGHT ARROW
Function
Swap the current and next words or transposes words around operators, for example transposes apple = fruit to fruit = apple. Change the selected text to uppercase characters. Select the current word. Fill in the rest of the word you are typing once you have entered enough characters for the editor to identify the word you want. Swap the characters around the insertion point. Change the selected text to lowercase characters. Scroll the text up one line. Insert the Clipboard contents at the insertion point. Cut the selected text to the Clipboard. Delete the selected lines and place them on the Clipboard (Cut). Restore the previously undone action (Redo). Delete the selected text without placing it on the Clipboard. Display next overloaded function when the Parameter Info window is displayed. Move the cursor down the list, one entry at a time, when the Member List is displayed.
CTRL+SHIFT+T
CTRL+T CTRL+U CTRL+UP ARROW CTRL+V or SHIFT+INSERT CTRL+X or SHIFT+DELETE CTRL+M CTRL+Y or CTRL+SHIFT+Z or ALT+SHIFT+BACKSPACE DELETE DOWN ARROW
Display previously overloaded function when the Parameter Info window is displayed. Move the cursor up the list, one entry at a time, when the Member List is displayed.
UP ARROW
Function
Display context-sensitive documentation for functions, statements, methods, properties, or events. Display help on the Text Editor window. Find next occurrence of text specified in the Find window. Display or hide a shortcut. Turn the bookmarks for the current line on and off. Remove all bookmarks. Move the insertion point to the beginning of the next bookmark. Move the insertion point to the beginning of the previous bookmark. Change between box selection and stream selection mode. Show white space. Display and hide spaces and tab marks. Toggle between inserting and replacing text. Extend the selection down one line. Extend the selection up one line. Find previous occurrence of the text specified in the Find window. Extend the selection to the start of the current line. Extend the selection to the end of the current line. Extend your selection one character to the left. Extend your selection one character to the right. Extend the selection down one page.
F1 CTRL+F1 F3 Hold down CTRL and press KH Hold down CTRL and press KK Hold down CTRL and press KL Hold down CTRL and press KN Hold down CTRL and press KP Hold down CTRL and press RS Hold down CTRL and press RW INSERT SHIFT+DOWN ARROW SHIFT+UP ARROW SHIFT+F3 SHIFT+HOME SHIFT+END SHIFT+LEFT ARROW SHIFT+RIGHT ARROW SHIFT+PAGE DOWN
Function
Extend the selection up one page. Indent the selected text one tab stop to the right. Indents the selected text one tab stop to the left.
CTRL+PAGE DOWN CTRL+PAGE UP CTRL+LEFT ARROW CTRL+RIGHT ARROW LEFT ARROW RIGHT ARROW UP ARROW DOWN ARROW HOME END CTRL+HOME
Function
Move the cursor to the end of the document. Move to next pane. Move to previous pane. Move the insertion point to the beginning of the page. Move the insertion point to the end of the page. Scroll up one line at a time. Scroll down one line at a time.
Function
Shortcut
Comment
New Project Open Project Add Project Remove Project Save Project Save Project As Save Form Save Form As Print
Ctrl+N Ctrl+O
File-New File-Open Project File-Add Project File-Remove Project File-Save Project File-Save Project As File-Save File-Save Form AS File-Print
Ctrl+S
Alt+F+S Alt+F+A
Ctrl+P
Alt+F+P
Function
Alt+F+U Alt+F+K
Undo
Ctrl+Z
Alt+E+U
Edit-Undo. Only available when editing code in the VB Code Window Edit-Redo. Only available when editing code in the VB Code Window. Edit-Cut. Only available when editing code in the VB Code Window Edit-Copy. Only available when editing code in the VB Code Window Edit-Paste. Only available when editing code in the VB Code Window Edit-Delete. Only available when editing code in the VB Code Window Edit-Select All. Only available when editing code in the VB Code Window
Redo
Alt+E+R
Cut
Ctrl+X
Alt+E+T
Copy
Ctrl+C
Alt+E+C
Paste
Ctrl+V
Alt+E+P
Delete
Del
Alt+E+D
Select All
Ctrl+A
Alt+E+A
Function
Find
Ctrl+F
Alt+E+F
Edit-Find. Only available when editing code in the VB Code Window Edit-Find Next. Only available when editing code in the VB Code Window Edit-Replace. Only available when editing code in the VB Code Window Edit-Indent. Only available when editing code in the VB Code Window Edit-Outdent. Only available when editing code in the VB Code Window Edit-List Properties/ Methods. Only available when editing code in the VB Code Window Edit-List Constants. Only available when editing code in the VB Code Window Edit-Quick Info. Only available when editing code in the VB Code Window
Find Next
F3
Alt+E+N
Replace
Ctrl+H
Alt+E+E
Indent
Alt+E+I
Outdent
Alt+E+O
Ctrl+J
Alt+E+H
List Constants
Ctrl +Shift+J
Alt+E+S
Quick Info
Ctrl+I
Alt+E+Q
Function
Parameter Info
Ctrl +Shift+I
Alt+E+M
Edit-Parameter Info. Only available when editing code in the VB Code Window Edit-Complete Word. Only available when editing code in the VB Code Window
Complete Word
Ctrl +Space
Alt+E+W
Code Object Object Browser Immediate Window Locals Window Watch Window Call Stack Project Explorer Properties Window Form Layout Window Property Pages Toolbox Shift+F4 Ctrl+L Ctrl+R F4 Shift+F7 F2 Ctrl+G
Alt+V+C Alt+V+B Alt+V+O Alt+V+I Alt+I+S Alt+I+W Alt+I+K Alt+I+P Alt+I+W Alt+I+F Alt+I+G Alt+I+X
View-Code View-Object View-Object Browser View-Immediate Window View-Locals Window View-Watch Window View-Call Stack View-Project Explorer View-Properties Window View-Form Layout Window View-Property Pages View-Toolbox
Function
Add Form Add MDI Form Add Module Add Class Module Add User Control Add Property Page Add User Document Add File Remove Form References Components Project Properties Ctrl+T Ctrl+D
Alt+P+F Alt+P+I Alt+P+M Alt+P+C Alt+P+U Alt+P+P Alt+P+D Alt+P+A Alt+P+R Alt+P+N Alt+P+C Alt+P+R
Project-Add Form Project-Add MDI Form Project-Add Module Project-Add Class Module Project-Add User Control Project-Add Property Page Project-Add User Document Project-Add File Project-Remove Form Project-References Project-Components Project-Project Properties
Alt+O+A+L Alt+O+A+C
Function
Align Rights Align Tops Align Middles Align Bottoms Align To Grid Make Same Size Width Make Same Size Height Make Same Size Both Size To Grid Horizontal Spacing Make Equal Horizontal Spacing Increase Horizontal Spacing Decrease Horizontal Spacing Remove Vertical Spacing Make Equal Vertical Spacing Increase
Alt+O+A+R Alt+O+A+T Alt+O+A+M Alt+O+A+B Alt+O+A+G Alt+O+M+W Alt+O+M+H Alt+O+M+B Alt+O+D Alt+O+H+E
Format-Align Rights Format-Align Tops Format-Align Middles Format-Align Bottoms Format-Align To Grid Format-Make Same Size-Width Format-Make Same Size-Height Format-Make Same Size-Both Format-Size To Grid Format-Horizontal Spacing-Make Equal Format-Horizontal Spacing-Increase Format-Horizontal Spacing-Decrease Format-Horizontal Spacing-Remove Format-Vertical Spacing-Make Equal Format-Vertical Spacing-Increase
Alt+O+H+I
Alt+O+H+D
Alt+O+H+R
Alt+O+V+E
Alt+O+V+I
Function
Vertical Spacing Decrease Vertical Spacing Remove Center In Form Horizontally Center In Form Vertically Order Bring To Front Order Send To Back Lock Controls
Alt+O+V+D
Format-Vertical Spacing-Decrease Format-Vertical Spacing-Remove Format-Center In Form-Horizontally Format-Center In Form-Vertically Format-Order-Bring To Front Format-Order-Send To Back Format-Lock Controls
Alt+O+V+R
Alt+O+C+H
Alt+O+C+V
Step Into Step Over Step Out Run To Cursor Add Watch Edit Watch Quick Watch Toggle Breakpoint
Alt+D+R Alt+D+A
Debug-Run To Cursor Debug-Add Watch Debug-Edit Watch Debug-Quick Watch Debug-Toggle Breakpoint
Ctrl+W Shift+F9 F9
Function
Alt+D+C
Alt+D+S Alt+D+X
Shift+F5
Alt+R+R
Function
Arrange Icons
Alt+W+A
Window-Arrange Icons
Function
CTRL+E F4 CTRL+J CTRL+K CTRL+DOWN ARROW CTRL+UP ARROW CTRL+RIGHT ARROW CTRL+LEFT ARROW
Display the Menu Editor (design time only). Display the Properties window (design time only). Bring to front (affects overlapping controls at design time only). Send to back (affects overlapping controls at design time only). Move the control down one grid unit (if the grid is turned on) or one pixel (if the grid is turned off). Move the control up one grid unit (if the grid is turned on) or one pixel (if the grid is turned off). Move the control one grid unit (if the grid is turned one)or one pixel (if the grid is turned off) to the right. Move the control one grid unit (if the grid is turned on) or one pixel (if the grid is turned off) to the left.
To deselect all controls, click the form. To select controls in a container, first deselect the container and then CTRL+CLICK+DRAG around the desired controls.
Function
ALT+B
Use these key combinations when the Shortcut list box has the focus in the Menu Editor: Press F4 ALT+DOWN ARROW ALT+UP ARROW END HOME To Open or close the list. Open or close the list. Open or close the list. Move to the last item in the list. Move to the first item in the list.
Summary
I hope you've enjoyed this article.