问题
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) {}
来源:https://stackoverflow.com/questions/5497063/xcode4-is-there-a-key-binding-for-block-comments