Run Macros in IDE with shortcuts

Source: Internet
Author: User

Run Macros in IDE with shortcuts

If you have not renamed a temporary macro, press Ctrl + Shift + P or select "Run temporarymacro" from the "macro" sub-menu on the "tool" menu to run it. However, even if you have renamed it, you can still access it with a shortcut key. Visual Studio. NET provides one or more key associations (or "bindings") to the shortcut key to call the macro method. When you press the key sequence, a macro is executed. The following procedure describes how to bind a macro to a shortcut key.

  1. Record the example in the macro. If it does not exist, you can use the following method to restore the text document to the previous state: Re-type the word "one" and add a space behind it, then press the Home Key to place the insert point at the beginning of the row.
  2. Select "options" on the "Tools" menu to display the "options" dialog box.
  3.  
  4. In the "Environment" folder, click "keyboard ".
  5. In the "display command inclusion" box, type "macros ". All commands starting with "macros" will appear in the command list. (If the temporary macro name is not changed, it should beMacros. mymacros. recordingmodule. temporarymacro.)
  6. Scroll down the list to your Macro.
  7. Click the press shortcut box and type the key combination, for example, CTRL + Shift + ALT +. This is the shortcut key for executing the macro. If you want to, you can use different key order.
  8. Click Allocate, and then click OK ". Now the macro is bound to the shortcut key.
  9. Return to the text document and press Ctrl + Shift + ALT + A to call the macro.

From msdn -- Visual Studio macro: http://www.msdn.net/library/chs/default.asp? Url =/library/CHS/vsintro7/html/vxtskrunningmacros. asp

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.