简体   繁体   中英

How to select the second parameter when using Code completion in Xcode?

For example, when I type application, there are many options provided. The first parameter is always application, but the second parameter is quite different. The default selection is the first item: application:didFinishLaunchingWithOptions: , but what I want is another item: application:handleEventsForBackgroundURLSession:completionHandler: , and its second parameter starts with 'h'. So how would I get this method quickly and strait forward (not by down arrow)?

在此输入图像描述

I use Control-N Return to select the second one.

Also, I have caps-lock remapped to control in System Preferences -> Keyboard -> Modifier Keys , since that is where the control key was on the original UNIX era keyboards.

Control-N is also a UNIX era keyboard shortcut (equivalent to the down arrow). Most of the old keyboard shortcuts work in all well written mac apps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM