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.