Xcode4 - Is there a key binding for block comments

2019-07-20 05:54发布

问题:

I'm new to Xcode4 and looking for a key binding that inserts block comments to methods and classes.

For Example a written function:

void test(int i) {};

I'd like to have an block comment to this:

/** test
*
* @param int i
* @return void
*/
void test(int i) {};

回答1:

command option /

/// <#Description#>
///
/// - Parameter i: <#i description#>
func test(i: Int) {}