XCActionBar "Alfred in Xcode", xcactionbarxcode

Source: Internet
Author: User

XCActionBar "Alfred in Xcode", xcactionbarxcode

: Https://github.com/pdcgomes/XCActionBar

 

Basic commands:

(1) "command + shift + 8" or double-click "command" to open the "Action input box" window 」

(2) "command + option + 7" or double-click the "alt" key to perform the "Last Action 」


During programming, there are five buttons that can be used for double-click or three-click events:

(1) "alt": NSAlternateKeyMask

(2) "command": NSCommandKeyMask

(3) "control": NSControlKeyMask

(4) "fn": NSFunctionKeyMask

(5) "shift": NSShiftKeyMask

 

Useful functions:

(1) In the "Action input box" window, enter "Run", "Open Quickly", and so on. Then, a system menu item matching is displayed, and an item is selected, then press the "return" key to directly call the corresponding system menu item. The shortcut key corresponding to the system menu item is also displayed.

 

(2) The selected content is reused multiple times: XCDuplicateLineAction

After selecting the content, enter "Duplicate Lines" in the "Action input box", press the "tab" Key, enter the number of reuse times, and then press the "return" key.

 

 

(3) Add a prefix or suffix string to the selected multiple rows: XCAddPrefixToLinesAction, XCAddSuffixToLinesAction

After multiple lines are selected, in the "Action input box" window, enter "Add Prefix to Line (s)" or "Add Suffix to Line (s)", and press the "tab" key, enter the string to be added, and then press "return ".

 

 

 

(4) Add the prefix or suffix string XCAddPrefixToTextAction and XCAddSuffixToTextAction to the selected multiple rows as the overall content.

After selecting multiple lines of content, in the "Action input box" window, enter "Add Prefix to text" or "Add Suffix to text", and press the "tab" key, enter the string to be added, and then press "return ".

 

(5) Start the multi-column selection mode. It can be used to delete content of multiple columns.

In the "Action input box" window, enter "Column Selection Mode", and press the "return" key to determine whether to enable the switch based on the current status. Then, you can press the "option" key to select multiple columns.

 

(6) surround content; used for Numeric-type syntactic sugar operations

After selecting the content, in the "Action input box" window, enter "Surround text with NSNumber Literal" or "Surround text with NSString Literal", and then press "return; use command + option + 7 or double-click alt to perform the last action 」

 

For more useful content, please refer to the instructions in GitHub for more practical exploration.

 

Related Article

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.