I have a virtual Mac running and want to code a bit in Xcode. My keyboard has characters as { and [ available by using Alt-Gr. In my virtual Mac, using the same keyboard combinations gives me a different output.
I managed to solve this for some programs by using the 'Use symbol and text substitution' option under Language & Text - Text in the system settings. This is working fine in TextEdit, Safari, ..., but not in Xcode. Xcode seems to ignore the symbol and text substitution.
Any ideas how to fix this? Or maybe another workaround? Any help is appreciated, because this issue is really slowing down my programming speed.
Make sure you're using the latest version of the app. If the keyboard shortcut uses a function key, you may also need to press and hold the Fn key or the Globe key on the keyboard to perform the shortcut (depending on your Mac model, if you're using a Magic Keyboard, and how you set an option in Keyboard preferences).
Xcode, the text substitutions are not enabled by default. To enable go to Xcode -> Edit -> Format -> Substitutions -> Text Replacement (Enable this)
Hope this helps!
Edit: As Senseful mentioned its better to use Code Snippets. This is a link explaining how to use code snippets Creating Custom Code Snippets and this. Hope it helps!
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