Explore tweets tagged as #XcodeTips
I don’t think many devs know this, but you can move your current instruction when debugging in Xcode via drag & drop. #xcodetips
8
16
62
Everyone's no doubt noticed that when you move the cursor over a curly brace #Xcode will flash its opening or closing counterpart. However, you can also double click the curly braces, which will select all the code in that chunk. Can be a useful visual aid at times. #XcodeTips
13
61
305
Use shift+right click in Xcode to quickly select any view in the hierarchy beneath the cursor. #xcodetips
1
1
4
I was thinking about creating a Xcode Source Editor Extension to generate templates for the documentation of methods with a shortcut, but looking in Xcode's preferences I found that we already have a shortcut to do it 🎉 The shortcut is: ⌥ ⌘ / #XcodeTips #iOSdev #Xcode #Docs
7
37
140
How to show indention arrows on Xcode. Editor > ✅ Invisibles #ios #xcodetips
#trytoshareanusefulmessage
1
7
22
In #Xcode14, you can now simulate the keyboard layout to better visualise your actual UI. #Xcode #XcodeTips #iosdev
3
4
39
Did you know you can drag and drop your code around in #Xcode? This is great for making quick, minor adjustments to the ordering of variables, for example. You can even copy code from one file to another. #XcodeTips
6
8
71
Here's another good one for moving code around: Use cmd+opt+{ and cmd+opt+} to move code up and down, respectively. If no code chunk is selected, it'll move whichever line you're on. Also, you can use cmd+{ and cmd+} to indent code right and left. #Xcode #XcodeTips
3
11
60
Use appearance() to easily set the look of all instances of a class throughout your app... this might tidy up a lot of code in your project, and even remove subclasses! It can be restricted to instances that are contained only in other classes and trait collections. #XcodeTips
2
6
27
Xcode の使い方 並行処理/並列処理などの処理の実行時間、負荷、分担などを確認する ① Xcode > Open Developer Tool > Instruments ②「time」や「profile(r)」で検索 ③ Time Profiler を選択 ④ 録画ボタンを押してアプリを動かす Time Profiler の存在を覚えて、忘れたら検索 #XcodeTips
1
1
27
In case you didn't know, you can quickly show and hide individual changes to source control in Xcode with ⌘+click on the blue side bar. You can also discard an individual change without discarding other changes in the file. #Xcode #XcodeTips
3
8
29
Did you know you can import specific submodules, classes, funcs, etc? As far as I'm aware, this is only to signal your intent and perhaps make it clear where some func comes from, for example, rather than speed up compile times. #XcodeTips #SwiftTips
6
3
26
This is one I wish I'd known years ago! You can add multi cursors by holding control+shift then clicking wherever you want (I knew we could use arrow keys with this, but never tried clicking!) Tidying up long methods like this, which I often do, is now easier. #XcodeTips
3
4
41