Paul you are a legend, thanks for sharing these, 10 years doing Xcode development and didnt know half of these - My current fave is "Run without building" when you just want to restart the app without re compiling "ctrl+cmd+r"
Absolutely excellent Paul. My favourites: 1. In storyboard, Hold the Option key and then select the Source code file which makes sure that assistant editor is opened with the right file to make your connections 2. To go back to the file list no matter where the navigator panel is currently - Command + 1 3. Shift + Command + K to clean the build folder. Apparently Shift + Option + Command + K is supposed to perform a deeper clean. No idea if this is fact or fiction. 4. Command + R to run, Command + B to build 5. Mulit-position editing. Select the first location then hold Shift + Control then select the other locations to edit. Massive time saver. That should do for the moment.
I'm about 2/3 into the 100 Days of Swift course and this is gold! First, because it will help me navigate and follow the projects quick and easily, and second, because I came here just curious, expecting not to understand most of it, but I do understand almost all of it, and that makes me feel like I really progressed in my understanding of iOS programming.
So many good tips! I love the Structure > Move Selection Up or Down feature with cmd+opt+[ or cmd+opt+]. Works for both a single line of text, or many! Even more useful when writing SwiftUI
The spelling check and the extended mini map navigation will be a game changer in my daily developer routine. Thanks for the excellent video. You are an awesome guy.
Favorite additional tips: CMD-Shift-Y to show/hide the debug area and Option-click on view controller when in the storyboard to display on screen and drag button actions over. Great series!
Great tips! Knew some of them. One tip for SwiftUI that I am careful to follow, is to not type too much code before building because the error messages don’t make sense so you can’t pinpoint which line of code is wrong until you start deleting all the lines you entered until you find the one.
Haven't watched alll the vid yet, so don't know If it comes up, but here's the best thing I ever did for myself in Xcode. I bound the Refactor->Rename option to F13. Now I just place the cursor over a variable or function name, F13, write new name, enter. Boom, renamed everywhere
⇧⌘J - select the visible file in project navigation, was a real discovery for our team. Really help to navigation throw complicated architecture try it! Cheers
My tip: the disabled breakpoints also leaves a blue line on the right scrollbar. Just click twice in front of your actually important lines and work with a quick visible reference on the scrollbar. You can remove them after work done, from the Breakpoint Navigator.
The tip about adding init to classes is also useful for structs. the member wise init provided by the compiler is always “internal”. If you want a public one you can: Change your object from struct to class, use the Xcode refactoring tool to generate the init, change it back to a struct... and then make the generated init public.
My tip for you guys is something some may know from the JetBrains IDEs. They have this little target icon above the file tree and if you press it, it will show you where the currently in the editor opened file is located in the file tree. This is very useful in large projects after you navigated in your editor by clicking on method names for example. I missed it so long in Xcode until I found out it has it too, but it's little bit more hidden. You have to right click in the editor, then -> Navigate -> Reveal in Project Navigator
Thanks for the tips, I learned 2-3 new life-savers ❤️ I like to move things, and so do I like to move code in my source file. Mostly when dragging around some piece of useful code ⌥ + CMD + [ -> move line up ⌥ + CMD+ ] -> move line down
No. 5 was that I was don't know before, that's really helpful. But what for i was hoping was "DUPLICATE CURRENT LINE", its really handy shortcut when when needed declaration of same type and modifier variable.
Its good but got a bad thing when using with swiftlint, If you have an empty space (between two line for readability ) it will add space and create a warning for swift lint
Even better, there is an option in Xcode which will automatically re-indent on paste. You can find it in File > Preferences > Text editing > Indentation > Check "Re-indent on paste"
Number 1 is lifesaver, thank you for this video. I will be using it and number 8. Some i didn't know about, some did. Can anyone recommend some videos about testing?
@@trendz4422 it’s only really useful when browsing through others code, it’s gives you a birds eye view of what’s going on. Otherwise you would have to figure out what each component does and individually
14:43 NumberedRow.init???? I guess this is Swift being really clever, but can you please show the expanded version that shows how the unnamed List value is passed to the NumberedRow view?
My favourite is the 'Quicken' feature to help speed up builds. If you are finding build projects slow (especially Unity builds for me) press CMD + Q whilst XCode is buiilding the project and it will allocate more system resources to that task
Okay, but how can I force Xcode’s code editor to ALWAYS insert 2 spaces (or however many I want in the preferences) whenever I hit the key? This is super aggravating when I want to tab over an opening ‘{‘ and nothing happens. 😫 Even better, is there some way to have it put the open curly brace on the next line after a “func” declaration, and indented one level?
Paul you are a legend, thanks for sharing these, 10 years doing Xcode development and didnt know half of these - My current fave is "Run without building" when you just want to restart the app without re compiling "ctrl+cmd+r"
I like the triple slash comment that provides a description for a function or class when using autocomplete
Absolutely excellent Paul.
My favourites:
1. In storyboard, Hold the Option key and then select the Source code file which makes sure that assistant editor is opened with the right file to make your connections
2. To go back to the file list no matter where the navigator panel is currently - Command + 1
3. Shift + Command + K to clean the build folder. Apparently Shift + Option + Command + K is supposed to perform a deeper clean. No idea if this is fact or fiction.
4. Command + R to run, Command + B to build
5. Mulit-position editing. Select the first location then hold Shift + Control then select the other locations to edit. Massive time saver.
That should do for the moment.
I'm about 2/3 into the 100 Days of Swift course and this is gold! First, because it will help me navigate and follow the projects quick and easily, and second, because I came here just curious, expecting not to understand most of it, but I do understand almost all of it, and that makes me feel like I really progressed in my understanding of iOS programming.
I don’ t really have a favorite tip that you’ve gave they’re all good one. Thank you!
Great tips, the auto spelling and grammar is my favorite
My favorite Xcode shortcut is selecting part of code and choosing refactor extract it to method. Makes code so clearer.
So many good tips! I love the Structure > Move Selection Up or Down feature with cmd+opt+[ or cmd+opt+]. Works for both a single line of text, or many! Even more useful when writing SwiftUI
When was this added?
@@adlsfreund the feature has been there for a long time. The shortcut appeared in 2014 I believe.
The spelling check and the extended mini map navigation will be a game changer in my daily developer routine. Thanks for the excellent video. You are an awesome guy.
Filtering the jump bar was life savior
"Which is useful for the NEVER times you want to print out your source" 🤣
0:28 was just something I was bemoaning about classes yesterday! Thanks!
Favorite additional tips: CMD-Shift-Y to show/hide the debug area and Option-click on view controller when in the storyboard to display on screen and drag button actions over. Great series!
IAP testing in Xcode. Awesome! Ty for this vid.
I loved that tip about generate initializers!
Multiline Editing in Xcode is one of the most mind blowing features I have ever seen.
The interface maker shortcut was the best one for me! It's super helpful for code review and refactoring.
Dbl click the brace is defo gonna help. Am forever scrolling up and down trying to find matching braces.
Initializer method is awesome 👍, thanks for sharing this!
Great tips! Knew some of them. One tip for SwiftUI that I am careful to follow, is to not type too much code before building because the error messages don’t make sense so you can’t pinpoint which line of code is wrong until you start deleting all the lines you entered until you find the one.
Haven't watched alll the vid yet, so don't know If it comes up, but here's the best thing I ever did for myself in Xcode. I bound the Refactor->Rename option to F13. Now I just place the cursor over a variable or function name, F13, write new name, enter. Boom, renamed everywhere
Sounda pretty cool, unfortunately my Mac doesn't have F13 😢
@@_sabot The Magic Keyboard with NumPad goes up to F19. X-Mas comes around sooner or later.
wow impressive tips! i''m using xCode something like 6 years and i learned lot of good stuff here! thanks!
You got my thumbs up already after the very first tip.
My tip is to always check your explanation first when I want learn something new with Swift.
I don't even use Xcode yet I just watched the whole video. Some super handy tips here, kinda makes me want to use Xcode 🙃
Never thought I knew so little about Xcode until I watched this video.
Thanks. All tips are usefull. Tiling the simulator is most useful tip for me from all the new tips I learn.
⇧⌘J - select the visible file in project navigation, was a real discovery for our team. Really help to navigation throw complicated architecture
try it!
Cheers
Thank you for your helpful explanation
My tip: the disabled breakpoints also leaves a blue line on the right scrollbar. Just click twice in front of your actually important lines and work with a quick visible reference on the scrollbar. You can remove them after work done, from the Breakpoint Navigator.
The tip about adding init to classes is also useful for structs.
the member wise init provided by the compiler is always “internal”. If you want a public one you can: Change your object from struct to class, use the Xcode refactoring tool to generate the init, change it back to a struct... and then make the generated init public.
Thanks. Something to learn and remember for the weekend.
the best Swift and swift ui tutor there is 🔥
My tip for you guys is something some may know from the JetBrains IDEs. They have this little target icon above the file tree and if you press it, it will show you where the currently in the editor opened file is located in the file tree. This is very useful in large projects after you navigated in your editor by clicking on method names for example. I missed it so long in Xcode until I found out it has it too, but it's little bit more hidden. You have to right click in the editor, then -> Navigate -> Reveal in Project Navigator
Try CMD+Shift+J
:)
@@ShinnyxAKAvincent 😲
Code snippets library is my fave, i save all sorts in there
Thanks Paul. these will save a-lot of my time.
Awesome! Learned many new useful things! Thank you, Paul!
Fantastic! So many useful tips. Cheers for this!
Thanks! I always suggest your website and content to newer iOS developers that i meet. It's a go to resource. Succinct yet still very informative.
Great tips, some new ones here! Thanks 🙏
Thanks for the tips. I really liked the spell checker as I do typo a lot. 😬
Thanks for the tips, I learned 2-3 new life-savers ❤️
I like to move things, and so do I like to move code in my source file. Mostly when dragging around some piece of useful code
⌥ + CMD + [ -> move line up
⌥ + CMD+ ] -> move line down
Thank you for your share. It's really useful.
No. 5 was that I was don't know before, that's really helpful.
But what for i was hoping was "DUPLICATE CURRENT LINE", its really handy shortcut when when needed declaration of same type and modifier variable.
That indent shortcut is going to save me a lot of time.
too bad you didn't guess it was there.
Its good but got a bad thing when using with swiftlint, If you have an empty space (between two line for readability ) it will add space and create a warning for swift lint
Even better, there is an option in Xcode which will automatically re-indent on paste. You can find it in File > Preferences > Text editing > Indentation > Check "Re-indent on paste"
Great video, thanks!
i've learnt so much from this man it's not even funny anymore
Number 1 is lifesaver, thank you for this video. I will be using it and number 8. Some i didn't know about, some did. Can anyone recommend some videos about testing?
Cmd shift o - nice shortcut
BIG thanks for this huge amount of tips!
Thanks Paul, Love the tips!
Specially the one with testing in-app purchases, I used to waste so much time on those non-consumables
Thank you for sharing, Paul!
My favorite was 'Generating an interface file' - Awesome
How its useful? IDK how to use it.
@@trendz4422 it’s only really useful when browsing through others code, it’s gives you a birds eye view of what’s going on. Otherwise you would have to figure out what each component does and individually
These were so, so great.
Very useful one 👏🏻. Thank you
Nice tips!
Documenting a method shortcut is a great tip for me, hopefully I'll be doing it more often now on :)
This is gold!!!
Thank you so much Paul 🙏🏻🙏🏻🙏🏻
Fantastic video! Great tips in here.
Thanks for sharing this.. Really cool tips & tricks.
Amazing tips
Thanks for your amazing tips. BTW, could you please show me how to customize the Xcode appearance like yours?
Very useful, thanks!
Thank you for all the tips
Please make a video on Swift UI MVVM programing 🙏🏼
Very useful. 🤘
Excellent. Thank you.
Thanks Paul!
These are really helpful!
Fantastic tips - thanks Paul! :-)
Very good tips!
Probably the best Xcode tips list I've ever seen. I knew like only 2 of these, so the rest were pure gold :)
TIP 3: Double Click i searched lot. Thanks Paul..!!!
These are great 🔑
Thanks for these tips!
My favourite one is All issues fixing in one click
Now if this would also work in Jira 😌
Do you have a debugging tips 101 video?
Thanks.
Like all of it ✨
Thanks, really helpful
Great tips 👍
14:43 NumberedRow.init???? I guess this is Swift being really clever, but can you please show the expanded version that shows how the unnamed List value is passed to the NumberedRow view?
I love auto-indent --> ctrl-I ;-)
Brilliant - thanks
I like Multi-cursor editing.
should have been tip #25
Thanks Paul
My favourite is the 'Quicken' feature to help speed up builds. If you are finding build projects slow (especially Unity builds for me) press CMD + Q whilst XCode is buiilding the project and it will allocate more system resources to that task
Okay, but how can I force Xcode’s code editor to ALWAYS insert 2 spaces (or however many I want in the preferences) whenever I hit the key? This is super aggravating when I want to tab over an opening ‘{‘ and nothing happens. 😫 Even better, is there some way to have it put the open curly brace on the next line after a “func” declaration, and indented one level?
Any tip for showing and hiding line numbers without to open the preferences?
CTRL+i this what i want. Thank u
Thanks paul 👏
Thank you very much for #21 ;-)
I knew all of them 😎
Thank you! ..... Now we need one of your subscribers to have a print out for us lol
For the 8º I'm using Amethyst to tile the windows, so it's even easier.
I know it's not part of Xcode but it's worth.
for tip No1, I find it more easy not to use the Editor, you can simply do right click on the class name -> refactor > generate membervise initializer
Great!
Hey paul, how do you add the preview or simulator that when you change code it changed the app live like in swiftui
could u make a vid making a player with multiple videos with the play next button plz i can't figure it out
That was so extremely useful, thank you very much Paul. Those were some pretty advanced pro tips there!