Re: Newbie questions about XCode
Re: Newbie questions about XCode
- Subject: Re: Newbie questions about XCode
- From: Ian Jackson <email@hidden>
- Date: Thu, 4 Feb 2010 00:08:50 +1300
I'll answer the ones I can.
On 3/02/2010, at 11:33 PM, Johan Lund wrote: Why does not camelcase completion work? e.g. typeing “UIPV” should cause UIPickerView to be suggested.
Typing UIPi should start the code sense autocompletion. If you want to see what the options are, press escape. There are other macros too. See Xcode Workspace Guide: The Text Editor.
Why does the editor not insert a closing brace automatically? I type a new method in my .m file and press enter after typing in the opening brace and it should automatically add the closing brace but it doesn’t.
Go to Preferences > Indentation and choose Automatically insert closing "}"
Why does the completion not know about variables declared in the .h file? Oh, it does, just found out... But only if you have saved your .h file, which brings me to my next question.
This, having to save all the time is highly annoying. Especially when you add an outlet and switch into interface builder and its not there. Is there a way to automatically save the document everytime I switch between counterparts or into xcode or before compiling etc. In IntelliJ IDEA there is no need to save - ever! If you need to go back on something dangerous you just pull up local history, and in addition to that you have VCN.
For compiling, try going to Preferences, Building and set "For Unsaved Files:" to "Always Save".
Why do I sometimes get two tabs instead of one? I find that I quite often have to press backspace on a new line because XCode inserted two tabs instead of one.
Is it trying to automatically do indenting? Is there a way to add a newline after the one I am currently positioned in the middle of? Right now I am moving the the end of the line first then pressing enter but in e.g. IntelliJ IDEA I can just press shift enter.
Don't know, but command + right arrow gets you to the end of the line quickly Is there a way to auto indent a block of code that has become a bit messy?
Select the messy code, right click, and chose Re-Indent Selection. Is there really no intelligent code generation built in? E.g.:
If I nominate e.g. the fileowner in interface builder to be the delegate of some component, why does not XCode automatically offer to insert the necessary e.g. <UIPickerViewDelegate, UIPickerViewDataSource> in my .h file?
If I add a property in my .h file I want XCode to be able to automatically add the corresponding synthesize statement in the .m file. If I add a method signature in my .h file I want XCode to automatically add it to the .m file. Can these things be done?
And I'll listen out to see if anyone else answers the others.
Ian. |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden