Is there any keyboard shortcut for '// MARK:' in swift like there is for header doc '/// Description' ?
No there isn't any shortcuts for the //MARK. However, you can create a code snippet for it and re-use whenever and wherever you want.
Steps:
You would be asked to create a name for the snippet. Label it appropriately. And that's it.
For usage, Drag and drop this snippet anywhere you want
There is no problem to add it as a code snippet to Xcode.
What you should do is:
// MARK: <#Description#>
, select it and then drag it to the code snippet in the utilities section:and that's it!
Usage:
As per the screenshot above, the completion handler shortcut is: 'm'; By typing 'm' in the code area, you should see:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With