iOS tips: Creating custom code snippets in xCode

How to create custom code snippets in xcode? Its super easy.
code snippets

How to create a code snippet in xcode?

Creating a code snippet is easy. Just select the code that you want to make a snippet and drag it to the code snippet section towards the bottom right of the xcode. A window will appear and there you can rename it and add a description. Check the gif below.

Creating a code snippet
Using the code snippet
let const = <# placeholder_text/code #>
Creating snippets with code placeholders

If you enjoyed reading this post, please share and give some clapps so others can find it πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘ !!!!

You can follow me on Medium for fresh articles. Also, connect with me on LinkedIn. Also follow my facebook page on swift: iosswiftblogger.



iOS and tvOS developer, dreamer, photographer 🀨

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store