{"id":6233,"date":"2007-04-25T04:26:00","date_gmt":"2007-04-25T04:26:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/vbteam\/2007\/04\/25\/working-with-shortcut-keys-lisa-feigenbaum\/"},"modified":"2024-07-05T14:47:37","modified_gmt":"2024-07-05T21:47:37","slug":"working-with-shortcut-keys-lisa-feigenbaum","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/vbteam\/working-with-shortcut-keys-lisa-feigenbaum\/","title":{"rendered":"Working with Shortcut Keys  (Lisa Feigenbaum)"},"content":{"rendered":"<p>Since we have so&nbsp;many&nbsp;Orcas posts&nbsp;going up on this blog, I&#8217;ve decided to continue with a few that you can use TODAY in Visual Studio 2005.&nbsp; This one is about working with shortcut keys&#8230;<\/p>\n<p>For those of you using the Visual Basic Development Settings, your keyboard scheme&nbsp;is set to&nbsp;Visual Basic 6 by default.&nbsp; You can verify this by checking the setting in Tools-&gt;Options-&gt;Environment-&gt;Keyboard.<\/p>\n<p><strong><font color=\"#008000\">The complete list of keyboard shortcuts for the currently bound commands in the VB6 scheme is located <\/font><\/strong><a href=\"http:\/\/msdn2.microsoft.com\/en-us\/library\/6k5ah8a8\"><strong><font color=\"#003399\">here<\/font><\/strong><\/a><strong>.&nbsp; <font color=\"#008000\">(Note: This is also a good source for command descriptions.)<\/font><\/strong><\/p>\n<p>Once you have this initial set of keyboard shortcuts, there are a number of things you might want to do&#8230;&nbsp; You might want to change the shortcut for an existing binding; you might want to add a shortcut for a command that does not yet have one; or you might want to export your keybinding set&nbsp;to import it on another machine.<\/p>\n<p>The information pasted below is actually an&nbsp;excerpt from one of our MSDN docs: <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/library\/5zwses53\"><font color=\"#003399\">How To: Work with Shortcut Key Combinations.<\/font><\/a>&nbsp; It addresses the commonly asked questions we often get about these tasks.&nbsp; So, read on!<\/p>\n<h3 class=\"subHeading\">Determine the Shortcut Key Assigned to a Command<\/h3>\n<p>You can manually search for a command to determine whether or not it has a shortcut key combination.<\/p>\n<h3 class=\"subHeading\">To determine the shortcut key combination for a command<\/h3>\n<ol>\n<li>\n<p>On the <b>Tools<\/b> menu, click <b>Options<\/b>.<\/p>\n<\/li>\n<li>\n<p>Expand the <b>Environment<\/b> folder and select <strong>Keyboard<br \/><\/strong><br \/>Note: If you do not see the <strong>Keyboard<\/strong> page, check <strong>Show all settings<\/strong> located in the lower left of the <strong>Options<\/strong> dialog box.<\/p>\n<\/li>\n<li>In the <b>Show commands containing<\/b> box, enter the name of the command without spaces. \n<\/li>\n<li>\n<p>For example, <b>solutionexplorer<\/b>. <\/p>\n<\/li>\n<li>\n<p>In the list, select the correct command. <\/p>\n<p>For example, View.SolutionExplorer. <\/p>\n<\/li>\n<li>\n<p>If a shortcut key combination exists for the command, the combination appears in the <b>Shortcut(s) for selected command<\/b> drop-down list.<\/p>\n<\/li>\n<\/ol>\n<p><font size=\"4\"><strong>Create Custom Shortcut Keys<\/strong><\/font><\/p>\n<p>You can create new shortcut key combinations for any command or change the shortcut key combination for commands with existing combinations.<\/p>\n<h3 class=\"subHeading\">To create a new shortcut key combination<\/h3>\n<ol>\n<li>\n<p>On the <b>Tools<\/b> menu, click <b>Options<\/b>.<\/p>\n<\/li>\n<li>\n<p>Expand the <b>Environment<\/b> folder, and select <b>Keyboard<\/b>.<\/p>\n<p>Note: If you do not see the <b>Keyboard<\/b> page, check <b>Show all settings<\/b> located in the lower left corner of the <b>Options<\/b> dialog box.<\/p>\n<\/li>\n<li>\n<p>In the <b>Show commands containing<\/b> box, enter the name of the command without spaces.<\/p>\n<p>For example, <b>solutionexplorer<\/b>. <\/p>\n<\/li>\n<li>\n<p>In the list, select the command you want to assign to a shortcut key combination.<\/p>\n<\/li>\n<li>\n<p>On the <b>Use new shortcut in<\/b> drop-down list, select the feature area in which you want to use the shortcut. For example, you can choose <b>Global<\/b> if you want the shortcut to work in all contexts. Unless the same shortcut is mapped (as Global) in another editor, you can use it. Otherwise, the editor overrides the shortcut.<\/p>\n<\/li>\n<li>\n<p>Place the cursor in the <b>Press shortcut key(s)<\/b> box, and then use the keyboard to enter the key combination you intend to use for the command.<\/p>\n<p>Note: Shortcuts can contain the SHIFT, ALT, and\/or CTRL keys in combination with letters.<\/p>\n<p>Note: The following keys cannot be assigned: ESC, PRINT SCRN\/SYS RQ, SCROLL LOCK, PAUSE\/BREAK, TAB, CAPS LOCK, INSERT, HOME, END, PAGE UP, PAGE DOWN, Windows logo keys, Application key, any of the ARROW keys, or ENTER; NUM LOCK, DEL, or CLEAR on the numeric keypad; or CTRL+ALT+DELETE<\/p>\n<p>Be sure to check the <b>Shortcut currently used by<\/b> box to see if the key combination is already assigned to another command in the mapping scheme. Press BACKSPACE to delete the key combination, if the combination is already in use, before trying another combination.<\/p>\n<\/li>\n<li>\n<p>Click <b>Assign<\/b>.<\/p>\n<p>Note: Changes made using the <b>Assign<\/b> button are not cancelled, if you click the <b>Cancel<\/b> button.<\/p>\n<\/li>\n<\/ol>\n<p><font size=\"4\"><strong>Exporting and Importing Shortcut Keys<\/strong><\/font><\/p>\n<p>You can share the shortcut key combinations in the current keyboard mapping scheme by exporting the information to a file so others can import the data.<\/p>\n<h3 class=\"subHeading\">To export shortcut keys only<\/h3>\n<ol>\n<li>\n<p>On the <b>Tools<\/b> menu, choose <b>Import and Export Settings Wizard<\/b>.<\/p>\n<\/li>\n<li>\n<p>Select <b>Export select environment settings,<\/b> and then click <b>Next<\/b>.<\/p>\n<\/li>\n<li>\n<p>Under <b>What settings do you want to export?<\/b>, clear all categories selected by default.<\/p>\n<\/li>\n<li>\n<p>Expand <b>Options<\/b>, and then expand <b>Environment<\/b>.<\/p>\n<\/li>\n<li>\n<p>Select <b>Keyboard<\/b> and then click <b>Next<\/b>.<\/p>\n<\/li>\n<li>\n<p>For <b>What do you want to name your settings file?<\/b>, enter a name, and then click <b>Finish<\/b>.<\/p>\n<\/li>\n<\/ol>\n<h3 class=\"subHeading\">To import only shortcut keys<\/h3>\n<ol>\n<li>\n<p>On the <b>Tools<\/b> menu, click <b>Import and Export Settings Wizard<\/b>.<\/p>\n<\/li>\n<li>\n<p>Select <b>Import select environment settings,<\/b> and then click <b>Next<\/b>.<\/p>\n<\/li>\n<li>\n<p>Click <b>No, just import new settings, overwriting my current settings<\/b>, and then click <b>Next<\/b>.<\/p>\n<\/li>\n<li>\n<p>Under <b>My Settings<\/b>, select the settings file that contains the shortcut keys you want to import, or click <b>Browse<\/b> to locate the correct settings file.<\/p>\n<\/li>\n<li>\n<p>Click <b>Next<\/b>.<\/p>\n<\/li>\n<li>\n<p>Under <b>Which settings do you want to import?<\/b>, clear all categories.<\/p>\n<\/li>\n<li>\n<p>Expand <b>Options<\/b>, and then expand <b>Environment<\/b>.<\/p>\n<\/li>\n<li>\n<p>Select <b>Keyboard<\/b>, and then click <b>Finish<\/b>.<\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Since we have so&nbsp;many&nbsp;Orcas posts&nbsp;going up on this blog, I&#8217;ve decided to continue with a few that you can use TODAY in Visual Studio 2005.&nbsp; This one is about working with shortcut keys&#8230; For those of you using the Visual Basic Development Settings, your keyboard scheme&nbsp;is set to&nbsp;Visual Basic 6 by default.&nbsp; You can verify [&hellip;]<\/p>\n","protected":false},"author":15,"featured_media":8818,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[192,195],"tags":[74,95,164,165],"class_list":["post-6233","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-featured","category-visual-basic","tag-ide","tag-lisa-feigenbaum","tag-vb_express","tag-vb2005"],"acf":[],"blog_post_summary":"<p>Since we have so&nbsp;many&nbsp;Orcas posts&nbsp;going up on this blog, I&#8217;ve decided to continue with a few that you can use TODAY in Visual Studio 2005.&nbsp; This one is about working with shortcut keys&#8230; For those of you using the Visual Basic Development Settings, your keyboard scheme&nbsp;is set to&nbsp;Visual Basic 6 by default.&nbsp; You can verify [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/posts\/6233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/comments?post=6233"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/posts\/6233\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/media\/8818"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/media?parent=6233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/categories?post=6233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vbteam\/wp-json\/wp\/v2\/tags?post=6233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}